data modeling solutions this is a header...apr 21, 2020  · dimensional modeling rules steps: 1....

14
This is a Header THIS IS A SUBTITLE This is a Header THIS IS A SUBTITLE Data Modeling Solutions for Challenging Data Modeling Problems Paul Turley Lead Consultant, Microsoft Data Platform MVP SqlServerBi.blog @paul_turley

Upload: others

Post on 21-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Data Modeling Solutionsfor Challenging Data Modeling Problems

Paul Turley

Lead Consultant, Microsoft Data Platform MVPSqlServerBi.blog@paul_turley

Page 2: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Do your Power BI models suffer from “ambiguous relationships”? Have you expanded your vocabulary while encountering errors trying to relate multiple tables in a data model?

Data modeling is an essential skill in Power BI design and hard problems require creative solutions. In this session, we will enumerate common challenges and demonstrate modeling techniques to resolve them.

Data Modeling Solutions for Challenging Data Modeling Problems

Page 3: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

The World is not Flat

Flat Table

Page 4: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

A Star Is BornDimensional Model• General best practice

• Improved performance

• Accurate results

• Not an absolute for simple attributes

• There are (rare) exceptions

Page 5: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Who defined them?

Dimensional Modeling Rules

Steps:1. Load detailed atomic data into dimensional structures

2. Structure dimensional models around business processes

3. Ensure that every fact table has an associated date dimension table

4. Ensure that all facts in a single fact table are at the same grain or level of detail

5. Resolve many-to-many relationships in fact tables

6. Resolve many-to-one relationships in dimension tables

7. Store report labels and filter domain values in dimension tables

8. Make certain that dimension tables use a surrogate key

9. Create conformed dimensions to integrate data across the enterprise

10. Continuously balance requirements and realities

to deliver a DW/BI solution that’s accepted by

business users and that supports their

decision-making

Process:1. Select the business process

2. Declare the grain

3. Identify the dimensions

4. Identify the facts

…these people: …not to be confused with these people:

KimballGroup.com

Page 6: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Role PlayingRole Playing

Page 7: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Bidirectional Filters

Page 8: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Many To Many relationships

Page 9: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

•Disconnected tables

•Driving dynamic calculations

•The SWITCH( ) function

Who Needs Relationships Anyway?

Page 10: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Disconnected Tables

Page 11: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Switched Dynamic Measures

Page 12: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

DirectQuery & Composite Models

Page 13: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

Demonstrations• Switched dynamic time-series measure

• Disconnected tables & dynamic measures

• Dynamic Rank X

• Orders Pending Delivery

Page 14: Data Modeling Solutions This is a Header...Apr 21, 2020  · Dimensional Modeling Rules Steps: 1. Load detailed atomic data into dimensional structures 2. Structure dimensional models

This is a HeaderTHIS IS A SUBTITLE

This is a HeaderTHIS IS A SUBTITLE

• Star Schemashttps://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

• Many to Many Relationshipshttps://docs.microsoft.com/en-us/power-bi/guidance/relationships-many-to-many

• Model Optimizationhttps://docs.microsoft.com/en-us/power-bi/guidance/import-modeling-data-reduction

• DirectQuery Guidancehttps://docs.microsoft.com/en-us/power-bi/guidance/directquery-model-guidance

Optimization, Guidelines & Resources