Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
Please help me figure out how to create the data model for the compney im woring with:
Backround:
The company has clients/prospects, clients make one or several accounts with us and deposit $ and play in the stock (transactions).
Solve?:
Do I make a snowflake model with customers DIM ~filtering~> DepositorsDIM ~filtering~> accounts DIM ~filtering~> transactions FACT? im a im i'm a little lost so any help is much appreciated
thanks
Hey @Anonymous ,
that's always a little difficult to say without knowing the data. But in general the best model is always a star schema.
Do make sure your transaction fact table has a CustomerID, a DepositorsID and an AccountID. Then create the dimensional tables and connect them to the fact table.
But to be honest I don't understand what is the difference between a customer and a depositor and how many accounts there are and if they are connected to a customer or a depositor.
So it really depends.
Maybe check the following articles to get a better understanding for data modeling:
Why and how to Keep Dimensions & Facts tables separate - DAX modeling (theexcelclub.com)
Or the video series from GuyInACube:
Data modeling best practices - Part 1 - in Power BI and Analysis Services - YouTube
@Anonymous , Try to combine Customer DIM -> DepositorsDIM -> accounts DIM and then join with transactions FACT
You should prefer star schema
https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/
But ideally your model should work
wouldnt that give me one big flat DIM table? (i know that's somthing to avoid)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |