Hi All
Solved! Go to Solution.
There are a few functions you can try for this: SAMEPERIODLASTYEAR, PARALLELPERIOD, DATEADD
For example,
CALCULATE (
[SALES_],
DATEADD ( DATESYTD ( 'DATE'[Date] ), -1, YEAR )
)
See here for more discussion:
https://radacad.com/dateadd-vs-parallelperiod-vs-sameperiodlastyear-dax-time-intelligence-question
https://community.powerbi.com/t5/Desktop/DateAdd-vs-ParallelPeriod-vs-SamePeriodLastYea/m-p/689019
There are a few functions you can try for this: SAMEPERIODLASTYEAR, PARALLELPERIOD, DATEADD
For example,
CALCULATE (
[SALES_],
DATEADD ( DATESYTD ( 'DATE'[Date] ), -1, YEAR )
)
See here for more discussion:
https://radacad.com/dateadd-vs-parallelperiod-vs-sameperiodlastyear-dax-time-intelligence-question
https://community.powerbi.com/t5/Desktop/DateAdd-vs-ParallelPeriod-vs-SamePeriodLastYea/m-p/689019
@admin11 Paul,
Try this:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.