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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

sumx/summarize affected by filters that not contained in the summarize

Hi guys,

 

i need help with the below Sumx (Summarize) measure:

 

Summarize contains: table "sheet4", and 3 columns "Year" , "Period" , "Brand cm" .

Then we SUMX with the column "Brand cm".

 

gfov_0-1654072422380.png

 

The result is OK,

 

but when i apply a filter with a column that IN NOT part of the 3 columns contained in summarize (Year,Period,Brand cm) , then my measure changes !!! any ideas why ?

 

2 ACCEPTED SOLUTIONS
tamerj1
Community Champion
Community Champion

Hi @Anonymous 

Of course.
SUMMARIZE is calculated in the current filter context. 
What are you trying to achieve? Can you provide more details?

View solution in original post

@Anonymous 
Please try

Measure1 =
SUMX (
    CALCULATETABLE (
        DISTINCT ( Sheet4 ),
        ALLEXCEPT ( Sheet4, Sheet4[Year], Sheet4[Period] )
    ),
    Sheet4[brand_cm]
)

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@tamerj1  thank you very much for your reply I really appreciate this!

 

I have this table:

 

gfov_0-1654077163117.png

I want the sum of column "brand cm" to be shown "280" regardless of what customer the user may filter.

 

So i used the Summarize to group by the unique value per Year,Period and the i summed up.

 

But when i filter per customer it affects the results..

@Anonymous 
Thank you for your repy. But does the expected visual supposed to look like?

Anonymous
Not applicable

I want to see "280" and this measure to be the same regardless any filters (i.e customer) that a user may select

@Anonymous 
Please try

Measure1 =
SUMX (
    CALCULATETABLE (
        DISTINCT ( Sheet4 ),
        ALLEXCEPT ( Sheet4, Sheet4[Year], Sheet4[Period] )
    ),
    Sheet4[brand_cm]
)
Anonymous
Not applicable

it works fine ! thank you so much!!!

tamerj1
Community Champion
Community Champion

Hi @Anonymous 

Of course.
SUMMARIZE is calculated in the current filter context. 
What are you trying to achieve? Can you provide more details?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.