Microsoft
70-778 · Question #75
70-778 Question #75: Real Exam Question with Answer & Explanation
The correct answer is B. CALCULATE(SUM(sales[sales_amount]), SAMEPERIODLASTYEAR('Date'[Date])). https://msdn.microsoft.com/en-us/library/ee634825.aspx https://docs.microsoft.com/en-us/power-bi/desktop-quickstart-learn-dax-basics https://msdn.microsoft.com/en-us/library/ee634972.aspx
Question
You have a Power BI model that contains the following two tables: Sales (Sales_ID, DateID, sales_amount) Date(DateID, Date, Month, Week, Year) The tables have a relationship. You need to create a measure to calculate the sales for same period from the previous year. Which DAX formula should you use?
Options
- ASUM(sales[sales_amount]) -CALCULATE(SUM(sales[sales_amount]), DATESYID ('Date'[Date]))
- BCALCULATE(SUM(sales[sales_amount]), SAMEPERIODLASTYEAR('Date'[Date]))
- CSUM(sales[sales_amount]) - CALCULATE(SUM(sales[sales_amount]),
- DCALCULATEx(SUM(sales(sales_amount]), DATESYID('Date'[Date]))
Explanation
https://msdn.microsoft.com/en-us/library/ee634825.aspx https://docs.microsoft.com/en-us/power-bi/desktop-quickstart-learn-dax-basics https://msdn.microsoft.com/en-us/library/ee634972.aspx
Community Discussion
No community discussion yet for this question.