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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

DAX Conditional Formtting - Color based on Number "is Between" two values?

Hi there! I must be missing something simple here.

 

I'm using this DAX to set the color on the "Cover Weeks" column in this matrix.
v

3.PNG

This is not working quite right, I want values 4, 5, or 6 to be yellow if the "Current Cover (Weeks)" measure,  I can't understand why the above still colors a 3 as yellow?

Any help much appreciated!

 

Thanks

 

Alex

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Anonymous,

Can you please share some dummy data with your measure formula to test?

How to Get Your Question Answered Quickly
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Conditional Fomartting for a particular field can be done graphically using  Conditiona Formatting --> Background color as well. Please find the below screenshot for the same.

 

swathi_20_1-1615982942746.png

 

 

amitchandak
Super User
Super User

@Anonymous , Merge second and third using && in

<=6 , should be <=6 &&

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan NL Carousel

Fabric Community Update - January 2025

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