Digital Ashish
Bonus Advanced DAX Challenges
41. Top Customer Name
Top Customer =
TOPN(
1,
VALUES(SalesData[Customer Name]),
[Total Sales],
DESC
)
42. Sales Above Average Flag
Sales Above Average =
IF(
[Total Sales] > [Average Sales],
"Above Average",
"Below Average"
)
43. Dynamic Sales Target Achievement
Target Achievement % =
DIVIDE(
[Total Sales],
500000
)
44. Same Period Last Year Sales
SPLY Sales =
CALCULATE(
[Total Sales],
SAMEPERIODLASTYEAR(SalesData[Date])
)
45. YoY Growth %
YoY Growth % =
DIVIDE(
[Total Sales] - [SPLY Sales],
[SPLY Sales]
)
Final Student Tasks
Dashboard Project Ideas
Project 1 – Sales Dashboard
Create:
- KPI cards
- Product sales chart
- State-wise analysis
- Monthly trend chart
- Payment type analysis
Project 2 – Executive Dashboard
Create:
- Profit analysis
- Customer segmentation
- Top products
- Growth percentage
- Dynamic filtering
Project 3 – Advanced Analytics Dashboard
Create:
- Running totals
- Ranking analysis
- Time intelligence visuals
- Forecasting visuals
- Drill-through reports
Important Learning Topics Covered
✅ Measures ✅ Calculated Columns ✅ Time Intelligence ✅ CALCULATE Function ✅ FILTER Function ✅ ALL & ALLEXCEPT ✅ RANKX ✅ DIVIDE ✅ SWITCH ✅ IF Statements ✅ Dynamic Analysis ✅ Dashboard KPIs
Recommended Practice Order
- Basic Aggregations
- Calculated Columns
- Measures
- Filters
- Time Intelligence
- Ranking Functions
- Dynamic Calculations
- Dashboard Building
- Advanced Analytics
Pro Tip
Always create a separate Date Table in Power BI for better Time Intelligence calculations.
Example:
Date Table = CALENDAR(DATE(2023,1,1), DATE(2025,12,31))
Then mark it as: Modeling → Mark as Date Table
Comments
Post a Comment