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
Faris
Regular Visitor

Dial Gauge changing limit

I would like to change the limit for guage dial based on the values I choose by a slicer

 

could any one help please

4 REPLIES 4
Faris
Regular Visitor

Thank you for the great solution. However, Iwould like it to be changable based on the licer I choose. As shown in the image if I picked all the hotels the dial limits will change but if I picked one of the hotels the limit will be based on the total of all hotels.

 

Capture1.PNG

 

 

Thank you

In that case the table you use for your slicer should contain a record for each hotel with the hotel name and the total value (number of audits?) for that hotel. Your Gague Max measure would just sum the total value and will dynamically update based on the inherited filter context from your slicer selection.

 

 

Gauge Max = Sum('Your Slicer Table'[Audit Vslue])

 

halfglassdarkly
Responsive Resident
Responsive Resident

Hi Faris, you can create a measure to get the max selected value from whatever field you're using for your slicer.

 

You'll likely want to create a disconnected table that contains the values for your slicer range, e.g. if the user is selecting from 1-100 you could create a calculated table using the GenerateSeries function https://learn.microsoft.com/en-us/dax/generateseries-function 

 

Then use the column from this table for your slicer and create a measure like:

 

 

Gauge Max = Max('Your Slicer Table'[Slicer Column])

 



Then assign this as the Max value for the gauge visual.

 

See also https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-slicer-numeric-range 

I am using count in the current table there are no numbers. The guages are the counts of audits extracted from the table using a measure, So I am not able to set limit from the table but by the count function

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 NL Carousel

Fabric Community Update - February 2025

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