Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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/
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |