Forum Discussion
Unable to create relationships between tables from SQL Server source
You need unique values on one side of the relationship. Often, you create a separate query and table with only distinct values and map (relate) everything to that. Power BI is pretty smart about transitive relationships.
- kazlik10 years agoHelper II
smoupre have you seen any benefit of using one query like he has now and referencing it then using M to get distinct values for this table instead of two queries?
- pqian10 years agoMicrosoft Employee
kazlik From an evaluation POV it doesn't really make a difference. However, if you reference the query instead of duplilcating it, any changes to the source query will affect the dependents. People often use this to build a report against development server then migrate the source query over to production.
- stangellapally10 years agoFrequent Visitor
I am creating a this report for Users who need whole universe of data and they want to filter out the values themselves. So they asked used to give all the columns requested from multiple tables.
So their is no work around with out us creating a separate query?
@smoupre wrote:You need unique values on one side of the relationship. Often, you create a separate query and table with only distinct values and map (relate) everything to that. Power BI is pretty smart about transitive relationships.