Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
107 | |
106 | |
91 | |
67 |
User | Count |
---|---|
162 | |
133 | |
132 | |
93 | |
91 |