Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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 November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.