Forum Discussion
Anonymous
5 years agoNot applicable
Are there DAX implications for using primary keys in dimension tables?
I have a PBI data model, which is a star schema, but am wondering if there are any DAX implications for the design (I know certain data model designs can cause undesired results when writing DAX meas...
amitchandak
Super User
5 years agoAnonymous , if this direct query then it is not a good option. But if it import mode, a view with distinct is fine. You can do that in power bi too.
refer: https://www.youtube.com/watch?v=kU2M1LmNvNo
DAX
- Anonymous5 years agoNot applicable
It's import. What do you mean what when you say: 'a view with distinct' please? Thanks.
PS I know how to create the tables in Power Bi. I'm asking if the dimension not including it's own Primary key is an issue.
- v-kelly-msft5 years ago
Community Support
Hi Anonymous ,
It is a good practice if the dimension includes it's own Primary key because it helps ensure that all your facts reference existing dimension members, and may improve performance but it is not mandatory.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!