Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Experts
I have managed to format the £ values numbers in my matrix table as Red but I am unable to do the same for % values.
Link.
https://www.dropbox.com/s/h611uzqxduhgv3e/sample.pbix?dl=0
When replying to question kindly outline steps do not post a pbix file. Thanks
Solved! Go to Solution.
Hi @Anonymous ,
This is due to the fact that when you are making the change of the % to a FORMAT syntax you are picking up text and not a value so the condittional formatting will not assume the number formatting.
What you need to do is to create a measure exactly like the Slicer_CM but for formatting.
Slicer_CM_Formatting =
VAR Mth1 =
SELECTEDVALUE ( SelMth_Current[Month] )
VAR Mth2 =
SELECTEDVALUE ( SelMth_Prior[Month] )
VAR Fcst1 =
SELECTEDVALUE ( SelMth4[Actual] )
VAR Fcst2 =
SELECTEDVALUE ( SelMth3[Actual] )
VAR Opt = 0
VAR MthVal =
CALCULATE (
SUM ( Profitability_Consolidation[Profit]);
Profitability_Consolidation[Period] = Fcst1;Profitability_Consolidation[Month] = Mth1
)
VAR MTDValue =
SWITCH ( TRUE();
AVERAGE ( Profitability_Consolidation[Chkfmt] ) = 1 && MthVal <0 ;"Red";
[Slicer_CM] <0; "Red"
)
RETURN
MTDValue
Now just use this measure has your formatting value, the "RED" can be change by any colour you want if you use a HEX colourings similar to this "#000000".
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
This is due to the fact that when you are making the change of the % to a FORMAT syntax you are picking up text and not a value so the condittional formatting will not assume the number formatting.
What you need to do is to create a measure exactly like the Slicer_CM but for formatting.
Slicer_CM_Formatting =
VAR Mth1 =
SELECTEDVALUE ( SelMth_Current[Month] )
VAR Mth2 =
SELECTEDVALUE ( SelMth_Prior[Month] )
VAR Fcst1 =
SELECTEDVALUE ( SelMth4[Actual] )
VAR Fcst2 =
SELECTEDVALUE ( SelMth3[Actual] )
VAR Opt = 0
VAR MthVal =
CALCULATE (
SUM ( Profitability_Consolidation[Profit]);
Profitability_Consolidation[Period] = Fcst1;Profitability_Consolidation[Month] = Mth1
)
VAR MTDValue =
SWITCH ( TRUE();
AVERAGE ( Profitability_Consolidation[Chkfmt] ) = 1 && MthVal <0 ;"Red";
[Slicer_CM] <0; "Red"
)
RETURN
MTDValue
Now just use this measure has your formatting value, the "RED" can be change by any colour you want if you use a HEX colourings similar to this "#000000".
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi MFelix...how do i format the values not % to 1dp. Currently 2dp.
Hi @Anonymous ,
Sorry I'm not understanding the question. What is the 1 / 2 dp?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMany thanks MFleix much appreciated for excellent feedback. Ps can you remove the sample pbix file from question i have down loaded it now.
Done.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMany thanks sir.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |