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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JohnnyT48
Helper I
Helper I

Multiple Relationships on Direct Query Feed

Having issues on a Direct Query Managing Relationships.

I can create a Calendar Table to manage the date connection ok. 

Then I need to link 2 more 

1. Project Number

2. Client Number

I can only make an active relationship between 1 link.... 

What is the best way to create a link while in Direct Query Feed, please not I cannot publish the file on Service if I create a table from the direct query. Need the soltuion within Direct Query.

Screenshot below:

JohnnyT48_0-1716483862379.png

 

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
Community Support

Hi @JohnnyT48 ,

 

Relationships based on multiple columns should be avoided in the table model, even in DirectQuery. Relationships based on a single native column always generate better query plans in DirectQuery. When native columns are not available, you should use COMBINEVALUES to create calculated columns in both tables to define the relationship between them. More details can be found at the link: Using COMBINEVALUES to optimize DirectQuery performance - SQLBI.


More detailed information about the direct query model can be found in the documentation:
DirectQuery model guidance in Power BI Desktop - Power BI | Microsoft Learn
DirectQuery in Power BI - Power BI | Microsoft Learn

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-kaiyue-msft
Community Support
Community Support

Hi @JohnnyT48 ,

 

Relationships based on multiple columns should be avoided in the table model, even in DirectQuery. Relationships based on a single native column always generate better query plans in DirectQuery. When native columns are not available, you should use COMBINEVALUES to create calculated columns in both tables to define the relationship between them. More details can be found at the link: Using COMBINEVALUES to optimize DirectQuery performance - SQLBI.


More detailed information about the direct query model can be found in the documentation:
DirectQuery model guidance in Power BI Desktop - Power BI | Microsoft Learn
DirectQuery in Power BI - Power BI | Microsoft Learn

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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