DAX practice: Dynamic Logic, Slicers & Ranking
Chapter 19 · 5 questions · included in full access
Question 1 · medium
Margin bands
Solve it in your browserWrite Margin Band: 'High' if [Margin %] >= 0.4, 'Medium' if >= 0.3, otherwise 'Low'. Use SWITCH(TRUE()).
Question 2 · medium
Region title
Solve it in your browserWrite Region Title: 'Sales for ' concatenated with SELECTEDVALUE of Reps[Region], falling back to 'all regions'.
Question 3 · medium
Blank the total
Solve it in your browserWrite Avg per Order: compute DIVIDE([Total Sales], [Orders]), but only when HASONEVALUE(Reps[Rep]) is true.
Question 4 · hard
Rank the reps
Solve it in your browserWrite Rep Rank: rank sales reps by [Total Sales] using RANKX over ALL(Reps[Rep]).
Question 5 · hard
Top product per region
Solve it in your browserWrite Top Product: extract the top-selling product name using CONCATENATEX, TOPN, and VALUES.
These questions are part of full access.
The first chapters of every track are free. Full access is a one-time payment.
See pricing