Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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.