Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone,
We are working on implementing Nested Row support in a Power BI Custom Visual Matrix that can handle multiple hierarchy groups. Our goal is to have each hierarchy group rendered in its own separate column, with the cell values aggregating accordingly.
However, we're encountering an issue with the Subtotals API. It seems that when adding multiple hierarchy groups in the Matrix visual, Power BI treats them as a single hierarchy group. We need to manage them as distinct groups, each with its own subtotal and aggregation.
To clarify, we would like to achieve the following:
A key challenge we're facing is having to handle the aggregation logic directly in the code, as we are unable to retrieve the necessary subtotals for certain calculations. Without the Subtotals API, we are limited in leveraging Power BI’s built-in aggregation or DAX functions and we can only do basic aggregation like Sum or Average.
PFB an example image to illustrate the issue we’re facing.
Has anyone else encountered a similar issue and found a solution or workaround for handling multiple hierarchy groups with proper subtotal aggregation in a custom visual? Any help or insights would be greatly appreciated!
Thanks in advance!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.