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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.