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
Vikas_Mattela
Frequent Visitor

Hierarchy Level Totals in Matrix Visual

Hey Folks,

 

I have created a matrix visual by using 4 levels of data (L1,L2,L3,L4). Now I want to calculate the % based on the Hierarchy level total in the matrix visual. I have tried DAX sing ISINSCOPE,ISFILTERED but both are not working.

 

Vikas_Mattela_0-1727064635312.png

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Vikas_Mattela ,

 

Have a nice day. Has the issue been resolved?

 

Best Regards,

Wearsky

Vikas_Mattela
Frequent Visitor

@lbendlin Thanks for your reply.

I have used below dax

HierarchySales =

VAR L1Col = CALCULATE(SUM(Sales[Amount]),ALLSELECTED(Sales[L1Column])

VAR L2Col = CALCULATE(SUM(Sales[Amount]),ALLSELECTED(Sales[L2Column])

VAR L3Col = CALCULATE(SUM(Sales[Amount]),ALLSELECTED(Sales[L3Column])

RETURN IF(ISINSCOPE(L1Column),L1Col ,IF(ISINSCOPE(L2Column),L2Col,L3Col)

 

But its showing same value as Amount column which is already there in Values section. By using above formula I want to calculate % of Hierarchy sales.

You need to test ISINSCOPE from the inside out, starting with L3.

lbendlin
Super User
Super User

ISINSCOPE is the right tool. Please explain what "not working"  means. What have you tried?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.