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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Vilem
Frequent Visitor

Gauge visual Maximum value not affected by ALL()

Hello everybody,

 

I thought this was a simple thing, but for some reason, it just isn't.

 

I have a Gauge visual with a sum of [BUD] as Maximum value.
I want this number to be affected by all the slicers and filters except one - month.

I thought this measure would work:

MAX BUD = CALCULATE(sum(Master[BUD]), ALL(Master[Month]))
Master is the name of the table
BUD is the name of the column I'm summing.

For some reason, if I filter in a slicer with the month I have, it still affects the Maximum value.

Can somebody, please, tell me why?
 
 
1 ACCEPTED SOLUTION
Vilem
Frequent Visitor

Hello,

I managed to find a solution.

 

I have 4 different slicers on the page. One of them is month and it's the only Slicer I didn't want to affect the Max Value in the Gauge visual.

MAX BUD = CALCULATE(sum(Master[BUD]),ALLEXCEPT(Master, Master[Slicer1Value], Master[Slicer2Value],Master[Slicer3Value))

Month is the only one that is not included in the slicer and it works.

For some reason I thought ALL() and ALLEXCEPT() were inverse function therefore the ...ALL(Master[Month])) function should work, but it doesn't.

Anyway, it's solved and working now. Not an ideal solution, but more of a workaround.

View solution in original post

5 REPLIES 5
Vilem
Frequent Visitor

Hello,

I managed to find a solution.

 

I have 4 different slicers on the page. One of them is month and it's the only Slicer I didn't want to affect the Max Value in the Gauge visual.

MAX BUD = CALCULATE(sum(Master[BUD]),ALLEXCEPT(Master, Master[Slicer1Value], Master[Slicer2Value],Master[Slicer3Value))

Month is the only one that is not included in the slicer and it works.

For some reason I thought ALL() and ALLEXCEPT() were inverse function therefore the ...ALL(Master[Month])) function should work, but it doesn't.

Anyway, it's solved and working now. Not an ideal solution, but more of a workaround.
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Vilem
Frequent Visitor

Hi @v-zhangti  and @amitchandak ,

Thanks for your tips, unfortunately, none of the solutions is working.
I tried both but the Max Value is still affected by the Slicer with Months.

I want the Max value to display the year's 100 % target value.

I want the Month slicer to affect the Callout value but the Max value should be fixed. (but affected by other slicers than month slicer)

Any other ideas?

v-zhangti
Community Support
Community Support

Hi, @Vilem 

 

You can try the following methods.

vzhangti_0-1673334453285.png

MAX BUD = CALCULATE(sum(Master[BUD]),ALLEXCEPT(Master,Master[Date]))

vzhangti_1-1673334482225.pngvzhangti_2-1673334500590.png

The maximum value is not affected by the month slicer, it is affected by other slicers. Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

amitchandak
Super User
Super User

@Vilem , Based on what I got, Try like

 

MAX BUD = CALCULATE(sumX(values(Master[Month]) , calculate(Sum(Master[BUD]))) , ALL(Master[Month]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.