0% found this document useful (0 votes)
71 views2 pages

Power BI DAX Assignment Superstore

The document outlines a Power BI assignment focused on DAX functions, targeting basic to intermediate users. It includes instructions for creating various measures and calculated columns across several sections such as aggregation, filtering, conditional logic, time intelligence, context, ranking, iterators, and advanced scenarios. Additionally, it features a bonus section with interview questions related to DAX concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views2 pages

Power BI DAX Assignment Superstore

The document outlines a Power BI assignment focused on DAX functions, targeting basic to intermediate users. It includes instructions for creating various measures and calculated columns across several sections such as aggregation, filtering, conditional logic, time intelligence, context, ranking, iterators, and advanced scenarios. Additionally, it features a bonus section with interview questions related to DAX concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Power BI Assignment – DAX Functions (Basic to

Intermediate)
Tool: Power BI Desktop
Dataset: Sample – Superstore
Focus: DAX Measures & Calculated Columns
Level: Basic to Intermediate

Instructions:
• Prefer Measures over calculated columns wherever possible.
• Use proper naming conventions for DAX measures.
• Explain results briefly where asked.

SECTION 1: BASIC AGGREGATION DAX

1 Create a measure for Total Sales.


2 Create a measure for Total Profit.
3 Create a measure for Total Quantity.
4 Create a measure to calculate Average Sales per Order.
5 Create a measure to calculate Profit Margin (%).

SECTION 2: COUNT & FILTER DAX

1 Create a measure to count total number of Orders.


2 Create a DISTINCTCOUNT measure for Customers.
3 Create a measure to calculate Sales where Discount = 0.
4 Create a measure to calculate Profit for Consumer Segment only.
5 Create a measure to calculate Sales for Central Region.

SECTION 3: CONDITIONAL & LOGICAL DAX

1 Create a measure to classify Profit as Profit or Loss.


2 Create a measure to identify orders with Negative Profit.
3 Create a measure using IF to flag High Discount (> 30%).
4 Create a measure using SWITCH for Segment-wise labeling.

SECTION 4: TIME INTELLIGENCE DAX

1 Create a Date table and mark it as Date table.


2 Create a measure for Year-to-Date (YTD) Sales.
3 Create a measure for Month-to-Date (MTD) Sales.
4 Create a measure for Previous Year Sales.
5 Create a measure to calculate Year-over-Year Growth %.

SECTION 5: CONTEXT & CALCULATE


1 Create a measure to calculate Total Sales ignoring filters on Region.
2 Create a measure to calculate Sales for selected Category only.
3 Use ALL() to show overall Sales irrespective of slicers.
4 Use ALLEXCEPT() to calculate Sales by Category only.

SECTION 6: RANKING & TOP N

1 Create a measure to Rank Products by Sales.


2 Create a measure to show Top 5 Products by Profit.
3 Create a measure to rank Categories by Total Sales.

SECTION 7: ITERATOR FUNCTIONS

1 Use SUMX() to calculate Total Sales.


2 Use AVERAGEX() to calculate average Sales per Order.
3 Use COUNTX() to count profitable orders.

SECTION 8: ADVANCED & SCENARIO DAX

1 Create a Running Total of Sales by Order Date.


2 Create a measure to calculate % Contribution of each Region to Total Sales.
3 Create a measure to find Customers with Sales above Average.
4 Create a measure to calculate Sales excluding Top 1 Region.

BONUS – INTERVIEW FOCUS

1 Explain difference between SUM() and SUMX().


2 Explain Row Context vs Filter Context.
3 Why CALCULATE() is the most important DAX function?
4 When should calculated columns be avoided?

You might also like