Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all
I have a metrix visual with several totals (below pic) which currently all grey, I want for each total level a different color and I tried it under "Rows subtotals" -- > choose a level but than my "values" is blocked (pic attached), any ideas ?
thx
Solved! Go to Solution.
Hi FreemanZ, thanks for the quick reply, I'll add more.
Hi @TomerIwanir1 ,
Please use the 'ISINSCOPE' function to determine the row level. Then work with the conditional format to set the color.
ISINSCOPE function (DAX) - DAX | Microsoft Learn
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Measure =
VAR _level1 = ISINSCOPE('Table'[level1])
VAR _level2 = ISINSCOPE('Table'[level2])
VAR _level3 = ISINSCOPE('Table'[level3])
RETURN
SWITCH(TRUE(),
_level3 = FALSE() && _level2 = TRUE(),"red",
_level2 = FALSE() && _level1 = TRUE(),"green",
"Yellow"
)
Final output
Best Regards,
Wenbin Zhou
Hi FreemanZ, thanks for the quick reply, I'll add more.
Hi @TomerIwanir1 ,
Please use the 'ISINSCOPE' function to determine the row level. Then work with the conditional format to set the color.
ISINSCOPE function (DAX) - DAX | Microsoft Learn
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Measure =
VAR _level1 = ISINSCOPE('Table'[level1])
VAR _level2 = ISINSCOPE('Table'[level2])
VAR _level3 = ISINSCOPE('Table'[level3])
RETURN
SWITCH(TRUE(),
_level3 = FALSE() && _level2 = TRUE(),"red",
_level2 = FALSE() && _level1 = TRUE(),"green",
"Yellow"
)
Final output
Best Regards,
Wenbin Zhou
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 18 | |
| 18 | |
| 12 | |
| 10 | |
| 5 |