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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.