Forum Discussion
Sameperiod Last Year - Display Issue
- 5 years ago
Hi,
Hello,
Thank you again for your answers.
By digging into the idea of filtering, I found a solution on the Internet in 2 steps:
1 calculated column : LastYear = DATEADD(Calendar[Date];-1;year)and 1 measure : CALCULATE(
SUM(LIGNES_FACT[LFC_FACTURE_CONSOLIDEE]);
FILTER(
All(Calendar);
CONTAINS(VALUES(Calendar[Last Year]);Calendar[Last Year];Calendar[Date])
)
)
Hi, AlexisPREVOT
Please correct me if I wrongly understand your question.
I think there are some limitations in using sameperiodlastyear.
https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax
Instead, please try to use DATEADD DAX function.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.