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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Fact
Frequent Visitor

The use of multiple tables without relationships

Hi, community. I have the following problem: there are 3 tables, to which connection is performed through a Direct Query. They have no related fields. How can I get a value from one table to another table? Or how can I create a new table based on three old ones. A specific example - how do I get the price for a particular company in the payments table?

shipments payments sales
date date date
company company company
shipped_weight amount_money price
    amount_money

 

Thanks in advance.

5 REPLIES 5
v-yulgu-msft
Employee
Employee

Hi @Fact,

 

Why don't you create relationships between tables? As I noticed there existing common fields in all three tables. Alternatively, if you don't want to create relationships, you can use LOOKUPVALUE to get a value from one table to another table.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

LOOKUPVALUE dont work in Direct Query Mode...

Hi @Fact,

 

What is your data source?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SQL Database

Hi @Fact,

 

Maybe you can achieve such a dataset via SQL Query when creating data source connection.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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