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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SAPpowerbi
Helper II
Helper II

I want last year values based on filter selection .

Hi,

I need values of last year based on below Measure 1 Dax,   so i am using same period last year function

And  I used  TOP- 20 filter on visual level filter on measure 2 then values showing incorrect for last year .

 

Measure 1 = CALCULATE(Sumx(summarize('Combined_Revenue','Combined_Revenue'[Client],"_1",[SL-1  Combined V4]),[_1]),DATESYTD('Calendar'[Date]))

 

Measure 2 = CALCULATE([Measure 1],SAMEPERIODLASTYEAR('Calendar'[Date]))

 

Measure 2 is working fine without Visual level filter for Top 20 values .once i used Top-20 filter then values showing incorrect for last year .

Please help me for the same .

Thank you 

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @SAPpowerbi ,

Could you please provide a simply sample to help reproduce the problem?

 

Best regards,

Community Support Team_yanjiang

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors