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
Friends, many 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. Keep this in mind!
Ravindra Bagale's Tip – मराठी
मित्रांनो, बरेच students measure फक्त grand total मध्येच तपासतात. प्रत्येक measure City नुसार आणि Month नुसार table visual मध्ये test करा, आणि एक-दोन cells हाताने केलेल्या calculation शी जुळवून बघा. लक्षात ठेवा!
Ravindra Bagale's Tip – हिंदी
दोस्तों, बहुत से students measure को सिर्फ़ grand total में check करते हैं. हर measure को City और Month के हिसाब से table visual में test करो, और एक-दो cells को हाथ से किए calculation से मिलाओ. ध्यान रखना!