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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Super User
Super User

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
Super User
Super User

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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