- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Color Text
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
11-06-2024 08:53 AM | |||
06-03-2022 02:45 AM | |||
11-05-2020 07:52 PM | |||
01-17-2025 04:51 AM | |||
04-07-2024 04:35 PM |