Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
snifer
Post Patron
Post Patron

conditional formatting text

I need to have conditional formatting for a text when display @" error" to become red (background or text)

 

is it possible?

1 ACCEPTED SOLUTION

@v-danhe-msft 

 

this is my measure and I can't make it work in case "SELECTED MULTIPLE CURRENCIES" appears to become written in red color.

 

CCheck = if((SELECTEDVALUE(CurrencySelector2[value])="Local Currency"), IF(
COUNTROWS(VALUES(UploadAccountsCurrentyPeriod[GroupStructure.CurrencyCode]))=1
, "OK"
, "SELECTED MULTIPLE CURRENCIES"), "OK"
)

View solution in original post

3 REPLIES 3
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @snifer ,

You may refer to using Color formatting by field value function in power bi:

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-formatting-by-f...

1.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-danhe-msft 

 

this is my measure and I can't make it work in case "SELECTED MULTIPLE CURRENCIES" appears to become written in red color.

 

CCheck = if((SELECTEDVALUE(CurrencySelector2[value])="Local Currency"), IF(
COUNTROWS(VALUES(UploadAccountsCurrentyPeriod[GroupStructure.CurrencyCode]))=1
, "OK"
, "SELECTED MULTIPLE CURRENCIES"), "OK"
)

Hi @snifer ,

Could you please post some simple sample data and your desired result to have a test if possible? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.