Forum Discussion
HELP ME PLEASE
- 5 years ago
Hi Anonymous ,
Please refer to my .pbix file.
Since today is October 12th, October 2019 will only calculate the value before the 12th.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous Try this measure:
Sales Prev Year =
VAR _stopdate = today()
RETURN
SUMX (
'Date',
CALCULATE (
IF (
SELECTEDVALUE ( 'Date'[Date] ) >= _stopdate,
BLANK (),
CALCULATE ( [Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
)
)
)
EDIT: replaced LASTNONBLANK ( 'Date'[Date], [Sales] ) with TODAY(), as that lastnonblank() took out more data than intended.
- Anonymous5 years agoNot applicable
thanks DataZoe but I don't know
- v-lionel-msft5 years agoCommunity Support
Hi Anonymous ,
Please refer to my .pbix file.
Since today is October 12th, October 2019 will only calculate the value before the 12th.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.