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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Conditional Formatting is not working for dates

Gradient is not working for dates from MAX to MIN, anyone knows why? I want to  color based on the latest date with a dark color until the oldest one with a soft color.

ariana220200_1-1666620334610.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a rank column.

rankk = RANKX('calendar','calendar'[Date])
Then use it in conditional formatting.
vjaywmsft_0-1666691150095.png
vjaywmsft_1-1666691196643.png

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi Jay, how can I do that? I'm not fully understanding 

Anonymous
Not applicable

Hi @Anonymous ,

 

Create a rank column.

rankk = RANKX('calendar','calendar'[Date])
Then use it in conditional formatting.
vjaywmsft_0-1666691150095.png
vjaywmsft_1-1666691196643.png

 

Best Regards,

Jay

Anonymous
Not applicable

Hi @Anonymous ,

 

Gradient for date type can only use count value as basic.

vjaywmsft_0-1666689928515.png

You will need to create an index or a rank column, and use this column as basic value of Gradient.

vjaywmsft_1-1666690025715.png

vjaywmsft_2-1666690079804.png

 

Best Regards,

Jay

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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