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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MartinM
New Member

Calculate different figures in Matrix based on displayed hierarchy level using DAX

Hi guys,

 

Have someone of You realized issue how to calculate different figures for each level of hierarchy? I dont know how to show one figures (I have already calculated) for the lowest level of hierarchy and another for higher level while number of levels are not fix. I have database like this

Capture1.PNG

And I need to show for users only one value in Matrix and should looks like this:

Capture2.PNG

But I am not able to show / calculate different figures for each levels => in case for example A2.1.1 or B1.1 is last level in hierarchy should include only values for posting items 1 and in case its not last lavel in hierarchy should include all values with all posting levels.

 

Thanks

2 REPLIES 2
Greg_Deckler
Super User
Super User

Check out Matrix Measure Total Triple Threat Rock & Roll.

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi,

This is working only if You have fix hierarchy and each level are fulfilled but I dont have fix hierarchy and some companies going up to level 6 and some only to level 4.

Think I find solution but I need to test it and I will let know the result soon.

 

Thanks a lot

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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