Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
endate < 3 "yellow color",
enddate>1 "red color"
for blank() "white color"
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
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"
)