Gomaa Intelligence.Data Hub
عربي

Foundations › Power BI › DAX practice bank

DAX practice bank

DAX Practice Bank

Analyst-style DAX exercises on the Nile Retail model with auto-checking, hints and model solutions.

0 / 20 exercises solved

Easy Exercise 1 — Write a measure Answer that returns the total quantity sold (Quantity).

Easy Exercise 2 — Write Answer returning the number of orders (rows in FactSales).

Easy Exercise 3 — Write Answer counting the distinct customers who bought (no duplicates).

Easy Exercise 4 — Using the two ready measures, write Answer = profit (sales minus cost).

Easy Exercise 5 — Write Answer = profit margin as a ratio (profit ÷ sales) using the safe way to divide.

Easy Exercise 6 — Write Answer = average order value (total sales ÷ number of orders).

Easy Exercise 7 — Write Answer returning Online-channel sales only, whatever channel filter is active.

Medium Exercise 8 — Write Answer returning sales for every channel except Online.

Medium Exercise 9 — Write Answer returning all-city sales even if a city slicer is active (remove only the city filter).

Medium Exercise 10 — Write Answer = the current channel's share of sales across all channels.

Medium Exercise 11 — Write Answer returning sales from large orders only (order sales above 20000).

Medium Exercise 12 — Write Answer showing the selected city if exactly one is selected, otherwise Multiple Cities.

Medium Exercise 13 — Compute gross profit row by row: Quantity × (UnitPrice − UnitCost), then add it up.

Medium Exercise 14 — Write Answer returning Electronics sales in Cairo only (two conditions in CALCULATE).

Medium Exercise 15 — Use VAR: store the margin in a variable and return "Low" if it is below 0.28, otherwise "Healthy".

Hard Exercise 16 — Write Answer = sales from the start of the year up to the latest date in context (YTD).

Hard Exercise 17 — Write Answer = sales for the same period last year.

Hard Exercise 18 — Write Answer = year-over-year sales growth YoY % : (current − previous) ÷ previous.

Hard Exercise 19 — Profit investigation: write Answer = margin change vs last year (in ratio points).

Hard Exercise 20 — Write Answer = number of products whose margin is below 25% in the current context.

Need a real Power BI dashboard for your business?

I design a data model and an executive dashboard fitted to your business and your real data.

Request an analytics service ↗
Get your data analyzed by an expert ↗