Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
shannnonpereira
Frequent Visitor

Issue with Subtotals API in Matrix with Multiple Hierarchy Groups

 

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.

shannnonpereira_0-1729670999867.png

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:

  • Each hierarchy group should be rendered in a separate column.
  • Subtotals should aggregate correctly across these groups.

 

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.

shannnonpereira_1-1729670999871.png

 

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!

0 REPLIES 0

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors