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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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"
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.