Forum Discussion
Star schema modelin OrderHeader and OrderDetails
- 5 years ago
Anonymous- that is very dependent on what you're trying to achieve with your reporting from this model and probably not really enough info to provide a definitive answer.
For example, if there's a need to report on individual orders, your order headers table may act as a dimension and if that level of granularity is not required, then amitchandak may be correct and merging the tables may be the correct approach.
It would probably be worthwhile sharing a screen shot of the model as it stands currrently showing the existing relationships.
Best practice for Power BI performance is always a star schema but defining whether something is a fact or dimension often depends on the grain required for reporting.
Hope this helps.
Anonymous- that is very dependent on what you're trying to achieve with your reporting from this model and probably not really enough info to provide a definitive answer.
For example, if there's a need to report on individual orders, your order headers table may act as a dimension and if that level of granularity is not required, then amitchandak may be correct and merging the tables may be the correct approach.
It would probably be worthwhile sharing a screen shot of the model as it stands currrently showing the existing relationships.
Best practice for Power BI performance is always a star schema but defining whether something is a fact or dimension often depends on the grain required for reporting.
Hope this helps.
- Anonymous5 years agoNot applicable
"need to report on individual orders, your order headers table may act as a dimension (...)"
I dont want to lose any information so this is required. And in the end I want so say which OrderDetails are related to which OrderHeader. That is simply a 1:n relationship, but that is not best practise for facts... Is it allowed to let the degenerated dimension "order_id" in the OrderHeader be a dimension for the OrderDetails?