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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kadingo
Helper II
Helper II

How to show group counts and totals in table or matrix visual

I'm still new to power BI and i'm really trying to deep dive into it so i'm not certain what is possible and what is not.

I have the following sample data.

Data.jpg

Is there away i can display the total counts of a Parent grouped by Area and then give a break down of those counts by Sub_Area?

In the sample data above, i want the results to display like in the screenshoot below:

Required.jpg

Is this possible in Power BI?, i would be happy with any visual that can do it, so i'm not limited to a matrix or table.

Also do not mind about the group line markers, i inluded them just to clarify my requirement but if they also can be achievable it still be nice.

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

Hi @kadingo ,

 

I think martix can meet your requirements.

You need to put "Sub_ Area" column in the value section and choose count.

1-1.PNG

Here is the visual for your reference.

1-2.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

6 REPLIES 6
v-eachen-msft
Community Support
Community Support

Hi @kadingo ,

 

I think martix can meet your requirements.

You need to put "Sub_ Area" column in the value section and choose count.

1-1.PNG

Here is the visual for your reference.

1-2.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

@v-eachen-msft  Is there away your solution can be modified to look like as in the screeshoot below?

 

Annotation 2020-01-08 104714.jpg

Hi @kadingo ,

 

It is close to your screenshot but not perfect.

3-1.PNG

I used ISINSCOPE() function to create the measure. Here is my test file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

@v-eachen-msft I have gone with your first example, its more than good enough, thank you very much.

amitchandak
Super User
Super User

Use matrix visual or even the table visual. and use countrows() measures

 

measure = countrows(table1)

or
measure = calculate(countrows(table1))

 

 

You filter using slicer or formula

 

measure = calculate(countrows(table1),area="Area_AA")

 

 

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
parry2k
Super User
Super User

@kadingo matrix visual will do it, put it all 3 column rows (basically it will create an hierarch) and drill down to the hierarchy at the lowes level, you can also change look and feel by turning step layout on/off on format pane.

 

On value section of matrix, add following measure

 

Total Count = COUNTROWS ( YourTable )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors