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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Gauge chart based on slicer

Hello,

 

I would like to display all the sales revenue in the gauge chart and then select a store to display how much this store revenue represent in total.

 

Aditionnaly, the gauge should be red if it haven't meet the quota and green if it does.

I created this measure to do it but i can't understand why it dosen't work : 

 

Conditionnal =
IF(Ventes[CA HT]>Objectifs[Objectif],"Green","Red")

 

 

Here's the Pbix file. It's the second sheet named "Magasins" 

The gauge should display 2,32M for 2020 but it displayed 4,65 and i don't understand

 

https://we.tl/t-Ru8YrMnQUU

 

Thanks for reading

2 ACCEPTED SOLUTIONS
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Conditionnal =
IF(Ventes[CA HT]>Objectifs[Objectif],"Green","Red")

This is a calculated column:

vjianbolimsft_0-1671413690038.png

If you want the color of Gauge chart changed based on slicer, you may need a measure like this:

Color = IF(Ventes[CA HT]>SUM(Objectifs[Objectif]),"Green","Red")

vjianbolimsft_3-1671414229873.png

Final output:

vjianbolimsft_1-1671414170596.png

vjianbolimsft_2-1671414198960.png

 

Best Regards,

Jianbo 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

v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want the maximum be 2.32, you may need to set it. Like this:

Measure 2 = CALCULATE([CA HT],ALLEXCEPT(Dates,Dates[Year]))

vjianbolimsft_0-1671440192867.png

For more details, please, refer to:

Radial gauge charts in Power BI - Power BI | Microsoft Learn

 

Besides, this question is beyond the original topic of the thread, so if you have other questions, please consider marking the replies that have helped you and creating a new thread for the new question in order to better help others with similar questions, which will also enable more people to help you.

 

Best Regards,

Jianbo 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
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want the maximum be 2.32, you may need to set it. Like this:

Measure 2 = CALCULATE([CA HT],ALLEXCEPT(Dates,Dates[Year]))

vjianbolimsft_0-1671440192867.png

For more details, please, refer to:

Radial gauge charts in Power BI - Power BI | Microsoft Learn

 

Besides, this question is beyond the original topic of the thread, so if you have other questions, please consider marking the replies that have helped you and creating a new thread for the new question in order to better help others with similar questions, which will also enable more people to help you.

 

Best Regards,

Jianbo Li

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

 

v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Conditionnal =
IF(Ventes[CA HT]>Objectifs[Objectif],"Green","Red")

This is a calculated column:

vjianbolimsft_0-1671413690038.png

If you want the color of Gauge chart changed based on slicer, you may need a measure like this:

Color = IF(Ventes[CA HT]>SUM(Objectifs[Objectif]),"Green","Red")

vjianbolimsft_3-1671414229873.png

Final output:

vjianbolimsft_1-1671414170596.png

vjianbolimsft_2-1671414198960.png

 

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors