Question: You have a table named Sales. You need to create a measure that calculates sales from the previous year based on a dynamic period. Which
You have a table named Sales. You need to create a measure that calculates sales from the previous year based on a dynamic period. Which two DAX expressions can you use to achieve the goal? Each correct answer presents a complete solution. Answer choices Select correct option(s) _PY Sales = CALCULATE(SUM(Sales[Sales]), SAMEPERIODLASTYEAR('Calendar'[Date])) _PY Sales = CALCULATE(SUM(Sales[Sales]), PARALLELPERIOD('Calendar'[Date], -1, YEAR)) _PY Sales = CALCULATE(SUM(Sales[Sales]), DATEADD('Calendar'[Date].[Date], -1, MONTH)) _PY Sales = CALCULATE(SUM(Sales[Sales]), DATEADD('Calendar'[Date].[Date], -1, YEAR)) Note: This question can have more than one correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
