Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm trying to get icons displayed for Revision date column and using this measure which works fine:
Solved! Go to Solution.
Hey @Anonymous ,
I guess the revision date in the same table as the calculated column. Then try the following formula:
CF1 =
VAR number_of_days = 'MDR'[Revision date] - TODAY()
RETURN
SWITCH(
TRUE(),
number_of_days < 0, "Red",
number_of_days < 180, "Orange",
"Green"
)
Be aware that a calculated column is always static, so the value will be evaluated when the data model is loaded. After that the values stay as they are. They won't change when you change a slicer or something like that.
@Anonymous
You can do it with one measure, modify your measure as follows:
CF1 =
VAR number_of_days =
SELECTEDVALUE ( Table5[Date]) - TODAY ()
RETURN
SWITCH (
TRUE (),
number_of_days < 0, 1,
number_of_days < 180, 2,
3
)
Select the Date and Icon for CF:
Configure CF as follows:
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hey @Anonymous ,
I guess the revision date in the same table as the calculated column. Then try the following formula:
CF1 =
VAR number_of_days = 'MDR'[Revision date] - TODAY()
RETURN
SWITCH(
TRUE(),
number_of_days < 0, "Red",
number_of_days < 180, "Orange",
"Green"
)
Be aware that a calculated column is always static, so the value will be evaluated when the data model is loaded. After that the values stay as they are. They won't change when you change a slicer or something like that.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
75 | |
72 | |
39 | |
29 | |
27 |
User | Count |
---|---|
97 | |
96 | |
58 | |
44 | |
40 |