cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors