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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fleed
New Member

Gauge chart with fixed max value

I would like to configure the Gauge chart as follows:

- maximum value = count of items in a table

- value = count of filtered items

 

setting the same column (Id from a database table) for both Maximum and Value shows always the current count (filtered items) as max, but I would like to keep a fixed max (ignoring filters).

 

Is it possible?

Thank you

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@fleed,

You can create a measure using ALL() function to calculate the max value, ALL() function ignores all slicers and visual/page/report filters. If you have any question about the DAX, please share sample data of your table here. 

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@fleed,

You can create a measure using ALL() function to calculate the max value, ALL() function ignores all slicers and visual/page/report filters. If you have any question about the DAX, please share sample data of your table here. 

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sorry, I try using All() but still MAX VALUE in gauge change with filter(date).  DAX: CALCULATE(SUM('test_sales'[revenue]), ALL('test_sales'[revenue])

syvorov444_0-1675631275809.png

 

What about the Minimum value? How do you create that in order for this to be fixed even when filtered?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.