Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Direct Query Compare two Columns from different tables

Hey there,

 

I have the following Problem:

I have a PowerBI dataset imported via direct Query and habe some local excel tables imported via excel import.

Now i have to connect two columns form two tables:

Table 1: Imported via direct Query

starttimeOrder_LabelDowntime Reason
28.01.2022 16:1945812500Swap
28.01.2022 14:4245812500Swap
28.01.2022 12:0045812500Swap

 

Table 2: imported via excel

Date & TimeSmelteryCoilnumberTimeList
28.01.2022 16:3093430078965428.01.2022 16:18
28.01.2022 16:3093430078965428.01.2022 16:19
28.01.2022 14:5087454774521428.01.2022 14:42
28.01.2022 14:5087454774521428.01.2022 14:43
28.01.2022 11:4025412474823128.01.2022 12:00

 

Now i need to connect the Order_label to the smeltery Coilnumber and Date & Time

Therefor i added in PowerQuery a Colum TimeList, where every Value -30min to +30 min of the Date & Time Colum exists in 1 min steps.

 

Now i'm stuck how do i connect my two tables?

 

1 Reply