Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to join views in power bi

Hello. On SQL Server I have created views, within which there are both values and aggregate measures of columns from the same or different tables, which I then imported into Power BI. Now, however, I want to make the data from the different views communicate with each other.
How do I do this? Do I need to link and join the views together? I don't have a unique key in the views. Thank you!

1 ACCEPTED SOLUTION

forget the term "views".  Everything in Power Query is a "query"  that is then represented as a partition to Power BI which treats each query as a separate "table". Power BI doesn't care what the table source is.

 

You can merge queries on more than one key in Power Query (and even on custom logic).  But - whenever you merge queries in Power Query a little kitten dies.

 

You can join tables in Power BI based on a single key only.  If you need multiple join fields then create composite keys.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Yes, but how i connect the views? i have to add a primary key and foreign key in each table? thank you!

forget the term "views".  Everything in Power Query is a "query"  that is then represented as a partition to Power BI which treats each query as a separate "table". Power BI doesn't care what the table source is.

 

You can merge queries on more than one key in Power Query (and even on custom logic).  But - whenever you merge queries in Power Query a little kitten dies.

 

You can join tables in Power BI based on a single key only.  If you need multiple join fields then create composite keys.

lbendlin
Super User
Super User

You create a data model in Power BI, ideally a star schema.  But if your data doesn't support that then you have to apply other relationships and join directions.  The data model needs to follow the business scenario.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors