The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Everyone,
I do have a table with date column and customer column and traffic signal indicator column.
I have created the traffic light indicator column with a measure "Indicator = UNICHAR(11044)"
Solved! Go to Solution.
@krrish116 , My bad, Reverse the order, Bigger date should be second
indicator=
var _dt = datediff(today(), max(Table[Date]), day)
return
Switch( true() ,
_dt <= 30, "red",
_dt <= 60, "Yellow",
_dt <= 90, "green",
"green")
@krrish116 , My bad, Reverse the order, Bigger date should be second
indicator=
var _dt = datediff(today(), max(Table[Date]), day)
return
Switch( true() ,
_dt <= 30, "red",
_dt <= 60, "Yellow",
_dt <= 90, "green",
"green")
Hi @amitchandak ,
Hatsoff to your intellectual brain sir. Thankyou so much.
you are the best sir.
Thanks,
Krish..
@krrish116 , You have use unichar and this color measure , in conditional formatting with field value option.
You can also use icon formatting in matrix and table
measure =
var _dt = datediff(max(Table[Date]), today(), day)
return
Switch( true() ,
_dt <= 30, "red",
_dt <= 60, "Yellow",
_dt <= 90, "green",
"green")
Refer these two
https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692
Hi @amitchandak ,
it is showing only red in the table when i put that measure in my table.
indicator=
var _dt = datediff(max(Table[Date]), today(), day)
return
Switch( true() ,
_dt <= 30, "red",
_dt <= 60, "Yellow",
_dt <= 90, "green",
"green")