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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
pasupathi
Helper I
Helper I

based on endate condition color has to change and for blank data show white color

 

endate < 3 "yellow color",

enddate>1 "red color"

for blank() "white color"

1.jpg 

3 REPLIES 3
Anonymous
Not applicable

Hi  @pasupathi ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Otherwise, the following conditional expressions show that enddate and the value for comparison does not seem to work. Please describe in detail the correct logic of the calculation and the final result you want. Also, please provide some sample data in Text form. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


endate < 3 "yellow color",

enddate>1 "red color"

for blank() "white color"


Best Regards

themistoklis
Community Champion
Community Champion

@pasupathi 

 

Try something like the below. Change the colour codes accordingly

 

New Column =
SWITCH (
TRUE (),
TODAY() - Endate < 5, "#D64550",
TODAY() - Endate < 2, "#E8D166",
TODAY() - Endate <= 1, "#79FF00",
"#00000"
)

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.

Top Solution Authors