The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All!
I have a matrix with 4 levels. There are possible values on each one of those hierarchy levels. I need to display a flag on the top most hierarchy level (level 1) if there is a value that exists on any of the four levels. Does anyone have any tips on how to accomplish that?
Thank you!
Could you show a screenshot of what the result looks like now?
Proud to be a Super User! | |
Hello,
You can consider using a mix of Variables and IF statements. Consider:
MEASURE =
VAR _Level1 =
IF ( ISBLANK ( 'Table'[Level1] ), 0, 1 ) //You can tweak the "ISBLANK" statement depending on how you are determining value for the level
VAR _Level2 =
IF ( ISBLANK ( 'Table'[Level2] ), 0, 1 )
VAR _Level3 =
IF ( ISBLANK ( 'Table'[Level3] ), 0, 1 )
VAR _Level4 =
IF ( ISBLANK ( 'Table'[Level4] ), 0, 1 )
RETURN
IF ( ( _Level1 + _Level2 + _Level3 + _Level4 ) > 0, "Flag", "" )
Proud to be a Super User! | |
Thanks for your reply!
I have tried something similar, but here it is with you structure. It still only displays the flag when the measure exists on that specific level
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
12 | |
11 | |
7 |