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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have a matrix table with one value and a calculation group for different time periods + calculations.
What I want is to put conditional formatting on the marked columns in red with + and - signs (see screenshot)
However, I cannot "select" (or don't know how to) those columns because they belong to a calculation group.
I tried to create a color-measure and then select with conditonal formatting (field) this measure, but it didn't work either:
Any ideas are highly appreciated! 🙂
Thanks!
Solved! Go to Solution.
Try rewriting your measure like this:
measure_color =
VAR ChangeValue = [Count Forms Category]
VAR Result =
IF (
SELECTEDVALUE ( 'Calc Group'[name] ) IN { "MyCalcItem1", "MyCalcItem2" },
SWITCH ( TRUE, ChangeValue > 0, "#008000", ChangeValue < 0, "#FF0000" )
)
RETURN
Result
The concept is to wrap the logic in an IF statement that determines if a matrix column is one of the calculation items that needs formatting. The limitation of this approach is that you have to specify the measure name. SELECTEDMEASURE is a calculation item placeholder so it won't work in a measure. Here's a helpful video:
https://www.youtube.com/watch?v=MbxJ1oHHyTg
Proud to be a Super User!
Try rewriting your measure like this:
measure_color =
VAR ChangeValue = [Count Forms Category]
VAR Result =
IF (
SELECTEDVALUE ( 'Calc Group'[name] ) IN { "MyCalcItem1", "MyCalcItem2" },
SWITCH ( TRUE, ChangeValue > 0, "#008000", ChangeValue < 0, "#FF0000" )
)
RETURN
Result
The concept is to wrap the logic in an IF statement that determines if a matrix column is one of the calculation items that needs formatting. The limitation of this approach is that you have to specify the measure name. SELECTEDMEASURE is a calculation item placeholder so it won't work in a measure. Here's a helpful video:
https://www.youtube.com/watch?v=MbxJ1oHHyTg
Proud to be a Super User!
@DataInsights Thank you very much - also for the Video, awesome stuff! ^^
I put in the following measure and it worked fine:
Glad to hear it worked!
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 8 | |
| 7 | |
| 7 |