Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I was able to create an hierarchy following this guide: Parent-child hierarchies – DAX Patterns
Please see the image below:
What happens here is that the Parent shows the accumulated values. Which is exactly what i want. BUT in some cases
the parent also has values.
Thus power Bi creates an blank row with its values.
This is the code ive got - that creates the level.
Level1 =
VAR LevelNumber = 1
VAR LevelKey = PATHITEM ( stats[path], LevelNumber, INTEGER )
VAR LevelName = LOOKUPVALUE ( stats[name], Stats[ID], LevelKey )
VAR Result = LevelName
RETURN
Result
Ive tried to create some sort of IF statement - but did not succeed as im not familiar with DAX.
Hi, @Anonymous ;
Hi, @Anonymous ;
I am not very clear about your collective needs. I have carefully checked your link and created a simple case. If you use the parent-child structure, you can directly use the matrix;
Maybe you can correct my understanding, you can share a simple example and hopefully the output?
Looking forwarding to your reply!
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , I think you should use isinscope
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
You can check value and isinscope
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 20 | |
| 14 | |
| 13 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 41 | |
| 40 | |
| 39 | |
| 38 |