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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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