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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.