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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Relation between 2 tables without matching identifiers (yes, I know...)

Hi, I am struggling with finding a relation between two tables that both have a timestamp - but not matching ones.

 

Table1: temperature sensor data recorded every 5 seconds:

5s.png

 

5stable.png

 

Table 2: information on which product has been manufactured - timestamp relates to when each product was finished

bil.png

 

For analytic purposes, I would like to know in table1 which product was manufactured at any given time. As you can see, I can´t related both tables by timestamp. In Excel, I couldn´t use VLookup either but basically for timestamp in table1 I searched for the closest timestamp in table2 (with matrix formula) - takes ages to compute.

 

Do have you have idea how I could solve this problem in PowerBI?

 

Thanks

Alexander

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

You possibly don't need to relate them at all.  Rather, why not create new columns in both tables, rounded to the nearest minute and then join both tables to a Time table.

 

This will allow you to create COUNT based measures for each time bucket and still plot on a visual.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

You possibly don't need to relate them at all.  Rather, why not create new columns in both tables, rounded to the nearest minute and then join both tables to a Time table.

 

This will allow you to create COUNT based measures for each time bucket and still plot on a visual.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Thanks. Indeed, why didn´t I think of that. Perfect.

Alexander

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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