28. End-to-End Project: Blinkit Quick-Commerce Dashboard
28.4 Step 3 – Build the Data Model
- Create the Date table with DAX (Module 11) covering the years in the data, with Year, Quarter, Month Number, Month Name, Year Month, Fiscal Year, Day Name, Is Weekend, and the Festival / Is Festival Day columns from a small Festivals table.
- Mark as date table; sort Month Name by Month Number; turn off Auto date/time.
- Create relationships (Model view), all one-to-many and single direction:
Product[Product ID]1:*Orders[Product ID]Customer[Customer ID]1:*Orders[Customer ID]DarkStore[Store ID]1:*Orders[Store ID]DeliveryPartner[Delivery Partner ID]1:*Orders[Delivery Partner ID]Date[Date]1:*Orders[Order Date](active)Date[Date]1:*Orders[Delivered Date](inactive)
- Hide all key columns in
Orders. - Create hierarchies: Date (Year › Quarter › Month Name › Date), Product (Category › Sub Category › Product Name), Location (State › City › Area › Store Name). Set data categories for City, State and Country.
- Create a
_Measurestable with display folders Sales, Orders, Delivery, Customers, Time, Platform, UI.
Model tayar jhala? Shabbas! Aata measures lihuya.
Ravindra Bagale's Tip
Friends, many students forget to mark the Date table or leave Auto date/time on, and time intelligence later gives strange results. Build the star schema, mark the Date table, set single-direction relationships and hide the keys before you write any measure. This matters for both exams and interviews.
Ravindra Bagale's Tip – मराठी
मित्रांनो, बरेच students Date table mark करायला विसरतात किंवा Auto date/time चालू ठेवतात, आणि नंतर time intelligence विचित्र results देतं. कोणताही measure लिहिण्याआधी star schema बनवा, Date table mark करा, single-direction relationships set करा आणि keys hide करा. हे exam आणि interview दोन्हीसाठी important आहे.
Ravindra Bagale's Tip – हिंदी
दोस्तों, बहुत से students Date table mark करना भूल जाते हैं या Auto date/time चालू छोड़ देते हैं, और बाद में time intelligence अजीब results देता है. कोई भी measure लिखने से पहले star schema बनाओ, Date table mark करो, single-direction relationships set करो और keys hide करो. यह exam और interview दोनों के लिए ज़रूरी है.