Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting Visual Objects

Goodmorning,

I was able somehow to set conditional formatting options on the following visual object (Red dot for values off target - Green dots for value on target). It seems that now I cannot edit anymore those conditional formatting options, I'm able to edit them only for tables, also the trendline suddenly disappeared. Any suggestions? Thank you.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , set the conditional formatting for the bar and change it to the line, it will work.

 

Create a color measure and use that in conditional formatting with field value option in bar

 

if([Actual] >[target] ,"Green", "Red")

 

refer for steps if needed

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

I create a line chart visual and find no conditional formatting for the visual . I want to know how the screenshot you provided came from ?

But you can set conditional formatting with table visual with measure . It must be ensured that the visual used supports conditional formatting .

Measure = IF(SELECTEDVALUE('Table'[Value])>SELECTEDVALUE('Table'[target]),"Green","Red") 

Ailsa-msft_0-1621932526852.png

Ailsa-msft_1-1621932526854.png

 

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

As @amitchandak suggested, to do this you have to go set the conditional formatting through "Histograms" and then move to "Line Charts".  As the target was static, the idea was that I wanted to set it withouth going through operating languages.

 

marcoproserpio_0-1621933060613.png

 

When you change the visual to lines it will hold the same format set with the histogram. Thank your for your reply, It will be usefull for a dynamic approach. 

amitchandak
Super User
Super User

@Anonymous , set the conditional formatting for the bar and change it to the line, it will work.

 

Create a color measure and use that in conditional formatting with field value option in bar

 

if([Actual] >[target] ,"Green", "Red")

 

refer for steps if needed

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.