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
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]))

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.