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
JoseDavidM
Helper I
Helper I

Conditional Format Gauge Charts

HI, i have a simple question, how can established a conditional format in a gauge chart based on a mobile target?, i mean, i have a diferent target every week and i need that the graph change between green and red depending on that

 

JoseDavidM_0-1616782629239.png

 

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @JoseDavidM 

According to your requirement, I think that you can create another measure to compare the value of the two measures based on the slicer. You can try this method:

  1. Create a measure:
Color = IF([Percent]<[Target1],"Red","Blue")
  1. Create a gauge chart and set the data color like this:

v-robertq-msft_0-1617069595419.png

v-robertq-msft_1-1617069595422.png

 

  1. Then create a slicer to slice the data based on week number, and you can get what you want, like this:

v-robertq-msft_2-1617069595424.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

4 REPLIES 4
v-robertq-msft
Community Support
Community Support

Hi, @JoseDavidM 

According to your requirement, I think that you can create another measure to compare the value of the two measures based on the slicer. You can try this method:

  1. Create a measure:
Color = IF([Percent]<[Target1],"Red","Blue")
  1. Create a gauge chart and set the data color like this:

v-robertq-msft_0-1617069595419.png

v-robertq-msft_1-1617069595422.png

 

  1. Then create a slicer to slice the data based on week number, and you can get what you want, like this:

v-robertq-msft_2-1617069595424.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

selimovd
Most Valuable Professional
Most Valuable Professional

Hey @JoseDavidM ,

 

you can change the conditional format based on a measure.

And the measure can change every week based on your data.

 

To to the format settings of you Gauge visual and click to the function symbol next to the target color:

4.5.png

 

Then you can chose the colors based on a measure:

5.png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
selimovd
Most Valuable Professional
Most Valuable Professional

Hey @JoseDavidM ,

 

did it work with the measure in the conditional formatting?

I'm curious if you could solve this issue 🙂

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Thanks for the answer. actually my problem is that the rule of the conditional format depends of two fields or measures, i mean, i need that tha graph change to red when a measure is lowe thatn another measure (target).

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 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.

Top Solution Authors