nerdexam
Microsoft

70-778 · Question #75

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…

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

Model and Visualize Data by Using Power BI Desktop

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]))

How the community answered

(43 responses)
  • A
    14% (6)
  • B
    77% (33)
  • C
    7% (3)
  • D
    2% (1)

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

Topics

#SAMEPERIODLASTYEAR#time intelligence#DAX measures#year-over-year

Community Discussion

No community discussion yet for this question.

Full 70-778 Practice