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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
valio21
New Member

Gauge chart

Hello community,

 

I have a question about Gauge chart. I have a bar chart with regions and performance for every region with %, and there are negative % too. My boss asked me if I can make a Gauge chart, which calculate only the positive % that is shown on the chart.

 

valio21_0-1720087189209.png

 

This is the bar chart, and the Gauge have to calculate all the green bars.

 

Thank you in advance!

1 ACCEPTED SOLUTION
hackcrr
Super User
Super User

Hi, @valio21 

To create a gauge chart that calculates only the positive percentages in a bar chart in Power BI, you can first create a metric:

Create an indicator that only counts positive values from existing performance indicators

PositivePerformance = 
CALCULATE(
    SUMX(
        YourTableName, 
        IF(YourTableName[Performance] > 0, YourTableName[Performance], 0)
    )
)

Insert the gauge chart:
Click the Gauge icon in the Visualization pane.
Drag the PositivePerformance metric to the Value field.
Adjust the Minimum, Maximum, and Target values in the Gauge Settings as needed.

 

hackcrr

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

View solution in original post

1 REPLY 1
hackcrr
Super User
Super User

Hi, @valio21 

To create a gauge chart that calculates only the positive percentages in a bar chart in Power BI, you can first create a metric:

Create an indicator that only counts positive values from existing performance indicators

PositivePerformance = 
CALCULATE(
    SUMX(
        YourTableName, 
        IF(YourTableName[Performance] > 0, YourTableName[Performance], 0)
    )
)

Insert the gauge chart:
Click the Gauge icon in the Visualization pane.
Drag the PositivePerformance metric to the Value field.
Adjust the Minimum, Maximum, and Target values in the Gauge Settings as needed.

 

hackcrr

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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