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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kylemcintyre17
Regular Visitor

Conditional Formatting for text columns

Hi, I am looking to use DAX formula to help with conditional formatting for columns containing text values. The table below is the data I am looking to format. 

 

ColorSupplyPriceMarket Dynamic
RedAllocationIncreaseExit Market
YellowL/T IncreaseFlatConsolidation
GreenNo ConstraintsDecreaseStable

 

Any help would be greatly appreciated. 

 

Thanks,

Best Regards

2 REPLIES 2
Pragati11
Super User
Super User

Hi @Kylemcintyre17 ,

 

On what value you want to apply conditional formatting?

You will have to define a measure or column based on which you can achieve this.

Refer following for the details:

https://exceleratorbi.com.au/conditional-formatting-with-a-text-field-in-power-bi/

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

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

nandukrishnavs
Super User
Super User

@Kylemcintyre17 

 

Check out this link https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-based-on-a-calc...

You can define a measure to return the HEX or Color name, then use that in the conditional formatting view.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors