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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

hierarchy table with row counts

Hello, I am trying to make a visual look similar to a pivot table, with a count of each row. Right now, I have my table data in a matrix visualization and it looks like this:

dataviolet_0-1672952821310.png

 

I want the visual to pull subtotals for each of the 6 row headers and do a total count at the bottom. Is there a custom visual I can use for this, or a way I can force totals to show up?

 

 

 

 
 

 

 

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1672969633054.png

Since I don't know your original measure, you could replace [Your Original Measure] in the DAX with your original measure:

Measure = IF(ISINSCOPE('Table'[Category 2]),[Your Original Measure],COUNT('Table'[Category 2]))

Final output:

vjianbolimsft_1-1672970000994.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1672969633054.png

Since I don't know your original measure, you could replace [Your Original Measure] in the DAX with your original measure:

Measure = IF(ISINSCOPE('Table'[Category 2]),[Your Original Measure],COUNT('Table'[Category 2]))

Final output:

vjianbolimsft_1-1672970000994.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

2023-01-05_15-05-27.png

specifically hoping to get a visual to look something like this

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.