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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors
Top Kudoed Authors