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! Request now

Reply
Anonymous
Not applicable

Performance REMOVEFILTERS and SUMX

I am concerned performance-wise for the next change in a measure:

 

Change... From:

Revenue LYTD:= CALCULATE([Revenue YTD] , SAMEPERIODLASTYEAR('Date'[Date]) )

 

To:

Revenue LYTD:=
VAR VAR1 = 
ADDCOLUMNS(VALUES(Revenue[Key_Customer]), 
                 "Col",CALCULATE([Revenue YTD],SAMEPERIODLASTYEAR('Date'[Date]),REMOVEFILTERS(Revenue[Segment],Revenue[Segment Type])))

RETURN SUMX(VAR1, [Col])

 

I am testing with little data, and it works fine; but is there any performance-penalty for forcing filter removal with REMOVEFILTERS?

1 REPLY 1
VahidDM
Super User
Super User

Hi @Anonymous 

 

I don't have any idea about your data model and report, but I think the below measure value would be the same. Would you please test this

Revenue LYTD :=
VAR VAR1 =
    SUMMARIZE (
        Revenue,
        Revenue[Key_Customer],
        "Col", CALCULATE ( [Revenue YTD], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
    )
RETURN
    SUMX ( VAR1, [Col] )

 

then you can measure the performance :

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-performance-analyzer#:~:text=In%20Power%20BI%20Desktop%20select,display%20the%20Performance%20Analyzer%20pane.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.