Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Dears,
i have this DAX formula and it shows as text because it contains % and Value in the same column
I need to color in read the text in negative
Solved! Go to Solution.
You can create a measure to format.
Format = IF(CONTAINSSTRING([Margin Gap],"-"),"red","green")
Then put it to the conditional formatting of the [Margin Gap] measure, select font color.
Then set the condition.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks
You can create a measure to format.
Format = IF(CONTAINSSTRING([Margin Gap],"-"),"red","green")
Then put it to the conditional formatting of the [Margin Gap] measure, select font color.
Then set the condition.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 55 | |
| 49 | |
| 33 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 85 | |
| 70 | |
| 38 | |
| 28 | |
| 25 |