Forum Discussion
admin11
Memorable Member
5 years agoHow to modify EXP expression to get Last Year Amount ?
Hi All I have below expression sales amount , it will plot current year :- SALES_ = SUM(SALES[sales]) Below expression will plot last year sales amount :- SALES_LY = CALCULATE( SUM(SALES[sa...
- 5 years ago
Hi,
Download my PBI file from here.
amitchandak
Super User
5 years agoadmin11 , Try like
AMOUNT_EXP_LY = CALCULATE([AMOUNT_EXP_], DATEADD('Date'[Date], -1, YEAR))
- admin115 years ago
Memorable Member
Thank you for sharing. i have try you expression , and when i just plot your expression alone , it return correct result. see below image :-
when i combine your expression with 2021 Exp amount expression , it return wrong result :-
My PBI sample file :-
https://www.dropbox.com/s/to10ko59wgs9lww/PBT_V2021_400%20GL_TI_4.pbix?dl=0
Paul
- Ashish_Mathur5 years ago
Super User
Hi,
Download my PBI file from here.
- admin115 years ago
Memorable Member