The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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:
Table 2: information on which product has been manufactured - timestamp relates to when each product was finished
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
Solved! Go to Solution.
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.
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.
Thanks. Indeed, why didn´t I think of that. Perfect.
Alexander
User | Count |
---|---|
62 | |
57 | |
54 | |
51 | |
33 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |