11. Data Modelling
Come on, friends, now the foundation of the report – Data Modelling. With a good model DAX becomes easy; with a bad model you fight for every measure. In this module we properly understand fact and dimension tables (a table of descriptive details), the star schema, relationships and the Date table.
चला मित्रांनो, आता report चा पाया – Data Modelling. Model चांगलं असेल तर DAX सोपा होतो, आणि model वाईट असेल तर प्रत्येक measure साठी भांडण करावं लागतं. या module मध्ये fact आणि dimension tables (वर्णनात्मक माहितीचा table), star schema, relationships आणि Date table हे सगळं नीट समजून घेऊ.
चलिए दोस्तों, अब report की नींव – Data Modelling. Model अच्छा हो तो DAX आसान हो जाता है, और model ख़राब हो तो हर measure के लिए लड़ना पड़ता है. इस module में fact और dimension tables (वर्णन वाली जानकारी की table), star schema, relationships और Date table यह सब अच्छे से समझेंगे.
What you will learn in this module
- Fact tables vs dimension tables
- Star schema vs snowflake schema
- Relationships: cardinality, cross-filter direction, active and inactive
- Building a date table with CALENDAR / CALENDARAUTO and marking it as a date table
- Modelling best practices
Live story: Why the city slicer did nothing
Suppose we load Orders and DarkStore tables for the Blinkit Maharashtra report. We add a City slicer. Pune, Nashik and Mumbai all show the same ₹1,500. Nothing is wrong with the numbers. The tables are simply not connected. This chapter builds a star schema: fact and dimension tables, relationships, and a Date table for the April–March financial year.
All numbers in this story are fictional practice data.
Live story: City slicer ने काहीच का केलं नाही?
समजा Blinkit Maharashtra report साठी आपण Orders आणि DarkStore tables load करतो. एक City slicer टाकतो. Pune, Nashik आणि Mumbai तिघांना तोच ₹1,500 दिसतो. आकड्यांमध्ये काही चूक नाही. Tables फक्त एकमेकांना जोडलेले नाहीत. हा chapter star schema बनवतो: fact आणि dimension tables, relationships, आणि April–March financial year साठी Date table.
या story मधले सगळे आकडे काल्पनिक practice data आहेत.
Live story: City slicer ने कुछ क्यों नहीं किया?
मान लीजिए Blinkit Maharashtra report के लिए हम Orders और DarkStore tables load करते हैं. एक City slicer लगाते हैं. Pune, Nashik और Mumbai तीनों में वही ₹1,500 दिखता है. आँकड़ों में कोई ग़लती नहीं है. Tables बस आपस में जुड़ी नहीं हैं. यह chapter star schema बनाता है: fact और dimension tables, relationships, और April–March financial year के लिए Date table.
इस story के सारे आँकड़े काल्पनिक practice data हैं.
Concepts in this chapter
- 11.1Why Data Modelling Matters
- 11.2Fact Tables and Dimension Tables
- 11.3Star Schema vs Snowflake Schema
- 11.4Relationships
- 11.5The Date Table
- 11.6Hierarchies and Groups
- 11.7Model View Properties
- 11.8Modelling Best Practices
- 11.9A Flat Table versus a Dimensional Model
- 11.10Role-Playing Dimensions
- 11.11Bridge Tables and Many-to-Many
- 11.12Perspectives
Review and practice
The chapter recap is at the end of the last concept page.
Ravi Sir's Cards: 16 revision, interview and comparison cards for this chapter · मराठी cards