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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply

Conditional Formatting of Combobox Text Color?

I already know how to do conditional formatting on values in a table/card, but is it possible do text color formatting IN A COMBOBOX, where (at the moment) I display NON-WORKING days with an astrix at the end of the date?

I'd like to remove the astrix and display non-working days with a RED Text Font instead.

 

jetform_consult_0-1768211292283.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @jetform_consult 

When you say combobox, do you mean a dropdown slicer? It isn't currently possible to conditionally format the color of an item in a dropdown slicer. You'll have more flexibility with the new  slicers which allow conditional formatting for the value and background color and an option to use  a label instead of the column values as a callout. There's no dropdown equivalent though.

danextian_0-1768213856970.png

Please see the attached pbix.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

5 REPLIES 5

I forgot to mention that my company refuses to update beyond the January 2019 version of PBI.  I know the NEWer versions of PBI have more control over what you can do, but our version is somewhat limited.

FBergamaschi
Super User
Super User

Hi @jetform_consult

yes you can, here my result test

 

FBergamaschi_0-1768214093267.png

 

 

define a measure that results in a text

 

go to the cell options and select text color basedon a measure and use that measure

 

FBergamaschi_1-1768214159128.png

 

FBergamaschi_2-1768214208430.png

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

 

 

danextian
Super User
Super User

Hi @jetform_consult 

When you say combobox, do you mean a dropdown slicer? It isn't currently possible to conditionally format the color of an item in a dropdown slicer. You'll have more flexibility with the new  slicers which allow conditional formatting for the value and background color and an option to use  a label instead of the column values as a callout. There's no dropdown equivalent though.

danextian_0-1768213856970.png

Please see the attached pbix.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Yes...I forgot to mention that my company refuses to update beyond the January 2019 version of PBI which is somewhat limited in its capabilities.

AntoineW
Super User
Super User

You are cleaning your data with Power Query on Desktop ? 

You can filter out them by using Power Query.

 

You can have a specific column on your date table to know if it's a non-working day (boolean).

And add a dax measure with condition to conditional formatting on values

 

this resource could be helpful : https://www.youtube.com/watch?v=NdQjlblelT0

 

Helpful resources

Announcements
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.