Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a four level hierarchy, arranged much as per the example in F 11 17 from Chapter 11 of the Definitive Guide to DAX by Russo Marco and Ferrari Alberto. When I filter by name, it keeps the person and its parents, but I also want to keep the children of the filtered person.
The first measure is
BrowseDepth:=ISFILTERED (Persons[Level1]) +
ISFILTERED (Persons[Level2]) +
ISFILTERED (Persons[Level3]) +
ISFILTERED (Persons[Level4])
and the second is
PC Amount:=IF (
MAX (Persons[NodeDepth]) < [BrowseDepth],
BLANK (),
SUM(Sales[Amount])
)
The output table is the person's name and the PC Amount.
I cannot figure out how to do this by myself so any help would be much appreciated.
I forgot to say that I am working in Excel hence using ISFILTERED rather than ISINSCOPE
User | Count |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |