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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
vyerva
New Member

Row Count:How to get the Row Count of the Lower Hierarchy level on each parent hierarchy in Matrix V

How to get the Row Count of the Lower Hierarchy level on each parent hierarchy in Matrix Visual as shown below screenshot:

 

vyerva_0-1689385183310.png

 

1 ACCEPTED SOLUTION

Hi, @vyerva 

 

You can try the following methods.

Column:

New Continent = [Continent]&"("&CALCULATE(DISTINCTCOUNT('Table'[Country]),ALLEXCEPT('Table','Table'[Continent]))&")"
New Country = [Country]&"("&CALCULATE(DISTINCTCOUNT('Table'[State]),ALLEXCEPT('Table','Table'[Country]))&")"

vzhangti_0-1689658714253.png

vzhangti_1-1689658733343.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

4 REPLIES 4
Kishore_KVN
Super User
Super User

Hello @vyerva ,

 

Have you tried Row Sub Total option of the Matrix Visual? Let us know if it is not working will suggest some other way. 

 

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

Thanks for the Suggestion, Can you please help to get the count of Lower hierarchy rows which I have highlighted in the below screenshot (yellow colour).

vyerva_0-1689640868066.png

 

Hi, @vyerva 

 

You can try the following methods.

Column:

New Continent = [Continent]&"("&CALCULATE(DISTINCTCOUNT('Table'[Country]),ALLEXCEPT('Table','Table'[Continent]))&")"
New Country = [Country]&"("&CALCULATE(DISTINCTCOUNT('Table'[State]),ALLEXCEPT('Table','Table'[Country]))&")"

vzhangti_0-1689658714253.png

vzhangti_1-1689658733343.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

 

Hi Kishore,  thanks.. I tried already that.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors