Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I need to summarize the below matrix visualization at Level 3 Hirerachy (Category 3)
Condition for Color rollup - if anything under category3 is Red - Then it show Red - (order - 1) Red, 2) Yellow, 3) Blue)
I need to summarrize the above matrix to achieve the below result -
Link to sample dataset - Sample Data and Visualization - Pbix file
Can someone please help me to achieve the above result.
Thanks
Solved! Go to Solution.
@Anonymous , Assuming Category4 is below catgegory 3 existing measure
measure =
var _C1 = count(filter(allselected(Table), Table[category3] = max(Table[category3]) && Table[category4] = "Red"), Table[category4])
var _C2 = count(filter(allselected(Table), Table[category3] = max(Table[category3]) && Table[category4] = "Yellow"), Table[category4])
return
if(isinscope(Table[category3]), Switch(true() ,
not(isblank(_C1)) , "Red" ,
not(isblank(_C2)) , "Yellow" ,
"Blue"
), [M1])
@Anonymous , Assuming Category4 is below catgegory 3 existing measure
measure =
var _C1 = count(filter(allselected(Table), Table[category3] = max(Table[category3]) && Table[category4] = "Red"), Table[category4])
var _C2 = count(filter(allselected(Table), Table[category3] = max(Table[category3]) && Table[category4] = "Yellow"), Table[category4])
return
if(isinscope(Table[category3]), Switch(true() ,
not(isblank(_C1)) , "Red" ,
not(isblank(_C2)) , "Yellow" ,
"Blue"
), [M1])
User | Count |
---|---|
50 | |
23 | |
18 | |
18 | |
14 |
User | Count |
---|---|
91 | |
85 | |
46 | |
28 | |
21 |