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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I am new to Power BI and I have a task to do. I need to sort the expiry dates in the "License Expiry Date" field according to overdue (Orange), 15 days before deadline (Red), 30 days before deadline (Yellow) and more than 30 days (Green). One more important point is there are some empty fields in the "License Expiry Date" field and these fields must not have any colours on it.
Is there a way for conditional formatting to colours those cells with dates in it while keeping the empty cells untounched?
Thanks.
Solved! Go to Solution.
Hello @Anonymous ,
We can achieve it by creating one measure and using it in the conditional formatting of the date values as shown below.
Thanks,
Neel
Hello @Anonymous ,
We can achieve it by creating one measure and using it in the conditional formatting of the date values as shown below.
Thanks,
Neel
@Anonymous , Assume you can create a measure like
days left = sumx( today(),Table[License Expiry Date],day)
Color Measure =Switch(True() ,
[Days Left] <= 15, "Red",
[Days Left] <= 30, "Yellow",
"Green"
)
Use this in conditional formatting using the field value option
PowerBI Abstract Thesis: How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 51 | |
| 45 |