cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SabariPrabu Frequent Visitor
Frequent Visitor

Formatting Traffic Light Indicator in Card

I am using a traffic light indicators UNICHAR(11044) in a card. Not sure how to do the color conditional formatting based on values. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-lid-msft Super Contributor
Super Contributor

Re: Formatting Traffic Light Indicator in Card

Hi @SabariPrabu ,

 

We can set the condition format in the card format - Data label.

 

5.PNG6.PNG7.PNG8.PNG

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Formatting Traffic Light Indicator in Card

Hi @SabariPrabu ,

 

To use the conditional formatting based on values you need to create another measure that returns a number then based on that create your conditional formatting rule.

 

Conditional formatting =
SWITCH (
    TRUE ();
    SUM ( 'Table'[Column2] ) <= 100; "#605E5C";
    SUM ( 'Table'[Column2] ) <= 300; "#000000";
    "#F0E199"
)

This is just an example you can adjust as you need.

 

Regards,

MFelix



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




v-lid-msft Super Contributor
Super Contributor

Re: Formatting Traffic Light Indicator in Card

Hi @SabariPrabu ,

 

We can set the condition format in the card format - Data label.

 

5.PNG6.PNG7.PNG8.PNG

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 235 members 2,590 guests
Please welcome our newest community members: