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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Super User
Super User

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
 

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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