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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Harry_Tran
Helper III
Helper III

All / Allexcept not working properly

Hi,

I have a table with columns like below:

Harry_Tran_2-1676066352163.png

I have all page filter for filter 1,2,3,4, and 5

 

Measure: Sale = Sum([Sale_Amt])

                TotalSale = CALCULATE ( [Sale], ALL ( Buckets))

                % = Sale / TotalSale

I also try:

               TotalSale = CALCULATE ( [Sale], ALLEXCEPT ( table, filter 1, filter 2, filter 3, filter 4, filter 5))

          Row: State

                   Buckets

          Column: Date

          Values: Sale

                      TotalSale

                       % 

I tryto do is create a TotalSale not affect by Bucket.

But when I filter on the slicer, the measure TotalSale (All) changes. 

For the Allexcept measure, if I remove the filter 3 and 5 from the measure it works but the number is not euqal to save. If I added filter 3 and 5 back to the measure, the number is correct, but for the line level (by bucket), the number is breakdown and not equal to the total level. for example:

Harry_Tran_3-1676067418477.png

 

What I need is

Sale = TotalSale ( at State level)

TotalSale is equal for all bucket

If I use slicer to filter to specific bucket, the TotalSale would be the same and should not be affected.

 

Thank you

1 REPLY 1
amitchandak
Super User
Super User

@Harry_Tran ,

 

Measure: Sale = Sum([Sale_Amt])

TotalSale = CALCULATE ( [Sale], ALL ( ))

 

or

 

TotalSale = CALCULATE ( [Sale], ALLSELECTED ())

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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