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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
userpien
Helper I
Helper I

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
userpien
Helper I
Helper I

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.