The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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"
)