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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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