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
admin11
Memorable Member
Memorable Member

How to make my expression return sales for year= 2020 ?

Hi All

 
I have below expression , it return wrong value , may i know how to make it display sales for year =2020 ?
 
Sales_2020_ = CALCULATE([SALES_], DATESYTD(DATEADD('Date'[Date],-1,YEAR)))
 
admin11_0-1622227646031.png

Remark :- 

- I aware that i can make use of filter pan to filter for sales = 2020

 

My PBI sample file 

https://www.dropbox.com/s/lqeh5phegf5ybjo/PBT_V2021_400%20GL_TI_8.pbix?dl=0

Paul

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @admin11 ,

is this what your are looking for:

 

28-05-_2021_21-23-38.png

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

1 REPLY 1
FrankAT
Community Champion
Community Champion

Hi @admin11 ,

is this what your are looking for:

 

28-05-_2021_21-23-38.png

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

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.

Top Solution Authors