cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mridul Member
Member

SQL server or PowerBI to create table relationship

Hi All,

 

What is the optimal solution for creating relationship between tables as per below details.

 

1) I am using SQL Server 2018 and Power BI Pro

2) 20 Tables (15 small tables , 5 heavy tables) exist in SQL having approx. 7 million records

3) To create reports, I need to make relationship between tables

 

Should I create relationship in SQL (Database Diagram ) OR in Powerquery using Import data functionality ?

I have created some relationship in PowerBI, Is there a possibility to import the same relationship in SQL Database Diagram ?

 

Thanks in advance. 

 

  

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Re: SQL server or PowerBI to create table relationship

@mridul ,

You can create relationship in both the modes(Import and Direct Query).

 

KUDOS would be really appreciated! Also mark this as a solution if it helps you!

View solution in original post

3 REPLIES 3
Super User II
Super User II

Re: SQL server or PowerBI to create table relationship

Hi @mridul , 

 

You need to create a relationship between all those in Power BI desktop under Relationship View.

 

Please give Thumbs up for support and accept this as a solution if it helps you!

mridul Member
Member

Re: SQL server or PowerBI to create table relationship

Hi @Tahreem24 ,

 

Thanks for your quick reponse.

Does this mean IMPORT functionality will be used and NOT Directquery ? 

Super User II
Super User II

Re: SQL server or PowerBI to create table relationship

@mridul ,

You can create relationship in both the modes(Import and Direct Query).

 

KUDOS would be really appreciated! Also mark this as a solution if it helps you!

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors