Forum Discussion
How to create extra icons (yellow traffic light)?
Hi robbert-bi Could you go through this video
https://www.youtube.com/watch?v=yTs9Z0ogUrk
In this it is explained how to achive this kind of KPI or custom colors traffic light
Hi. Thanks, but this works with measures. I need to have icons in a simple text column and based on the value in the text column the icon should have a specific color.
- v-menakakota1 year ago
Community Support
Hi robbert-bi ,
Thanks for reaching out to the Microsoft fabric community forum.
Since Power BI doesn't let us change the built-in icon colors for text columns, here's a simple workaround you can try:create a new column that shows the image URL based on the text value:
TrafficLight =
SWITCH(
[Status],
"Red", "https://yourlink.com/red.png",
"Orange", "https://yourlink.com/orange.png",
"Yellow", "https://yourlink.com/yellow.png",
"Green", "https://yourlink.com/green.png"
)
Select the column, then go to the Model view, and set Data Category to Image URL.
Add that column to your table now your traffic lights will show up with the correct colors.Best Regards,
Menaka.
Community Support Team