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
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
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.

Top Solution Authors
Top Kudoed Authors