Advanced Data Modeling in Power BI
Advanced Data Modeling in Power BI
Modeling with
Power BI
Explain data modeling Leverage one and bi- Successfully implement Work with real live
best practices in directional relationships aggregations scenarios containing
general multiple fact tables
Today’s agenda
Relationships revisited
Relationship direction
Working with multiple fact
tables
Implementing Aggregations
Wrap-up
Relationships revisited
Relationship types
Singular Bi-directional
Relationship direction
Bi-directional relationships can result in surprising results, especially when working with multiple
fact tables
It can have performance impacts and ‘overfilter’
Can lead to ambiguity
Dates
Dates
Demo – relationships direction
Demo
time!
Relationships &
Row level security
Does not filter dimensional tables
Except over 1:1 bi-directional
relationships
Possible when adding a RLS filter
to each table individually
Requires a specific setup regarding
relationships
Relationships &
Row level security
Uses single directional filters by
default
you can set ‘Apply the Filter Direction
when using Row Level security’ on a
bi-directional relationship to force
RLS to use bi-directional filtering
Useful for dynamic row level security
Demo – Row Level Security
Demo
time!
Handle multiple fact tables
Multiple fact tables
Multiple fact tables are common in real-life scenarios. Common scenarios:
Order Sales
Currency Customer Due date Employee Product Promotion Reseller Ship date
date territory
Internet sales X X X X X X X
Reseller sales X X X X X X X
Multiple fact tables
Order Sales
Currency Customer Due date Employee Product Promotion Reseller Ship date
date territory
Internet sales X X X X X X X
Reseller sales X X X X X X X
If you decide to append these, you will get (blanks) when you use
one of the unmatched columns
Demo – Multiple fact tables
Demo
time!
Implementing Aggregations
Aggregations
Benefits
Report visualizations are faster
Aggregated data is stored in-memory (imported), details are accessed through DirectQuery
Demo
time!
Automatic Aggregations – Preview!
Wrap up
Use a star schema or snowflake data model to get the best out of Power BI.