Forum Discussion
suma2413
2 years agoFrequent Visitor
Display Measures with Custom Hierarchy
Hello, I am working on converting an Excel report to a powerBI report. We have calculated multiple measures separately calculated for each row displayed below, but we now have to display it in a H...
- Anonymous2 years ago
Hi suma2413 ,
I created some data:
Are you referring to custom rules in each hierarchy? You can use the IF() + Isinscope() functions to determine each hierarchy.
Here are the steps you can follow:
1. Create measure.
Measure = IF( ISINSCOPE('Table'[Group2]),1, IF( ISINSCOPE('Table'[Group1]),2, IF( ISINSCOPE('Table'[ALL Sales]),3,0)))2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Ritaf1983
Super User
2 years agoHi suma2413
provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523