29. Practice Exercises and Final Assignment
29.4 Module 8: Add Column, Calculated Columns and Measures
- Use Column From Examples to create First Name from Customer Name.
- Create a Custom Column Order Line Total handling null Discount with
??. - Write
fnDeliveryBandand call it with Invoke Custom Function in both the Blinkit and Amazon Now queries. - Add an Index column starting at 1001 with increment 1.
- Parse a JSON Drop Location column into lat, lng and area.
- Create 5-minute delivery buckets with Standard › Integer-Divide and Multiply.
- Add Order Date, Order Hour and Day Name using Date and Time menus.
- DAX calculated columns: Category (RELATED), Delivery Speed Band (SWITCH) with a sort column, Is Weekend in the Date table.
- Implement Net Sales both as a column + SUM and as a SUMX measure. Compare results and model size.
- Explain why "% Under 10 Mins" must be a measure.
- Create a
_Measurestable, display folders and ₹ formats. Add a dynamic format string for Total Sales.
Ravindra Bagale's Tip
Mitrano, khup students check a measure only in the grand total. Test every measure in a table visual by City and by Month, and compare one or two cells with a manual calculation. Dhyan rakho!