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.
Hey all,
I am trying to create a status overview with an hierachy that should look the following (Used random values):
My Excel looks like this:
ID Name Value
1 a 1
1.1 aa 10
1.2 ab 11
2 b 3
2.1 ba 15
2.1.1 baa 20
3 c 25
Name: Value:
a 1
aa 10
ab 11
b 3
ba 15
baa 20
c 25
I tried this using dax functions and building a hierarchy and then put it in a matrix and added the Value Colum.
However my hierarchy looks like this:
I already did plenty of research trying to solve this problem but could not find a solution.
I tried it with one of Curbals-Videos with the ISBLANK function by creating the measure:
Hi, @Anonymous,
have you looked at this:
https://www.daxpatterns.com/parent-child-hierarchies/
If you set up the hierarchy according to daxpatterns you can create this measure:
Measure value =
SWITCH(true(),
[BrowseDepth] > [MaxNodeDepth] , BLANK (),
[BrowseDepth] = 1, CALCULATE(sum(Org[Value]),filter(org,ISBLANK(Org[Level 2]))),
[BrowseDepth] = 2, CALCULATE(sum(Org[Value]),filter(org,ISBLANK(Org[Level 3]))),
[BrowseDepth] = 3, CALCULATE(sum(Org[Value]),filter(org,Org[IsLeaf]))
)
where
BrowseDepth =
ISFILTERED ( org[Level 1] )
+ ISFILTERED ( org[Level 2] )
+ ISFILTERED ( org[Level 3] )
and
MaxNodeDepth = MAX ( org[HierarchyDepth] )
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |