Question 1 of 30
A retail company is using Power BI to analyze sales data stored in SQL Server Analysis Services (SSAS). They want to create a report that shows the total sales amount for each product category over the last quarter. The sales data is structured in a star schema with a fact table for sales transactions and dimension tables for products and categories. The company also wants to implement a measure that calculates the percentage of total sales for each category relative to the overall sales. Which DAX formula would correctly define this measure?
`Sales Percentage = DIVIDE(SUM(Sales[TotalAmount]), CALCULATE(SUM(Sales[TotalAmount]), ALL(Categories)))`
`Sales Percentage = SUM(Sales[TotalAmount]) / SUM(Sales[TotalAmount])`
`Sales Percentage = SUM(Sales[TotalAmount]) * 100 / CALCULATE(SUM(Sales[TotalAmount]), ALL(Categories))`
`Sales Percentage = SUM(Sales[TotalAmount]) - CALCULATE(SUM(Sales[TotalAmount]), ALL(Categories))`

Preparing for Microsoft DA-100 Analyzing Data with Microsoft Power BI? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free