Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All.
Im currently attempting to apply conditional formatting to a date colum where the formatting is applied to turn the cell red when the date entered is 2 months or more before the current date. I'm unsure if I need to create a new column in order to do this, and if so what formula should I be using.
Any help would be much appreciated.
Regards,
Alaya
Solved! Go to Solution.
You can create a flag column using today()-60:
Flag = IF([Date]<=TODAY()-60,1,0)
You can create a flag column using today()-60:
Flag = IF([Date]<=TODAY()-60,1,0)
@AlayaLove , Create a measure like
Color Date =
var _min = date(year(today()),month(today())-2,day(today())) // date(year(today()),month(today())-2,1)
var _max = date(year(today()),month(today())+2,day(today())) // date(year(today()),month(today())+2,1)
return
if(FIRSTNONBLANK('Date'[Date],blank) >= _min && FIRSTNONBLANK('Date'[Date],blank) <= _max ,"red","lightgreen")
And use it with field option in color formatting
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
User | Count |
---|---|
88 | |
74 | |
69 | |
65 | |
58 |
User | Count |
---|---|
106 | |
97 | |
76 | |
63 | |
60 |