Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |