Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I'm trying to get icons displayed for Revision date column and using this measure which works fine:
Solved! Go to Solution.
Hey @Alex_0201 ,
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.
@Alex_0201
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 @Alex_0201 ,
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
79 | |
67 | |
60 | |
45 | |
45 |