Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 4.32 KB

creating-recursive-hierarchy-groups-report-builder.md

File metadata and controls

55 lines (42 loc) · 4.32 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic ms.custom
Create recursive hierarchy groups in a paginated report
Discover uses for recursive hierarchy groups in a paginated report in Report Builder. Display hierarchical data such as employees in an organizational chart.
maggiesMSFT
maggies
rpatkar
06/16/2023
powerbi
report-builder
conceptual
updatefrequency5

Create recursive hierarchy groups in a paginated report (Power BI Report Builder)

[!INCLUDE applies-yes-report-builder-no-desktop]

To display recursive data in paginated reports (where the relationship between parent and child is represented by fields in the dataset), set the data region group expression based on the child field and set the Parent property based on the parent field.

Displaying hierarchical data is a common use for recursive hierarchy groups, for example, employees in an organizational chart. The dataset includes a list of employees and the managers, where the manager names also appear in the list of employees.

Create Recursive Hierarchies

To build a recursive hierarchy in a tablix data region, you must set the group expression to the field that specifies the child data and the Parent property of the group to the field that specifies the parent data. For example, for a dataset that includes fields for employee ID and manager ID where employees report to managers, set the group expression to employee ID and the Parent property to manager ID.

A group that is defined as a recursive hierarchy (that is, a group that uses the Parent property) can have only one group expression. You can use the Level function in text box padding to indent employee names based on their level in the hierarchy.

For more information, see Add or Delete a Group in a Data Region (Power BI Report Builder) and Create a Recursive Hierarchy Group (Power BI Report Builder).

Aggregate Functions that support Recursion

You can use Reporting Services aggregate functions that accept the parameter Recursive to calculate summary data for a recursive hierarchy. The following functions accept Recursive as a parameter:

For more information, see Aggregate Functions Reference (Report Builder).

Related content