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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
chris43
New Member

relate events in 1 table to lines in another table

I have a table with rows for individual events occuring on pieces of equipment in a factory. I also have another table in the same report that has shiftly data for each piece of equipment. I want to make a column in the original table or in another table that finds a piece of data in the second table at the time the event occurred and then another column that finds the same data in the second table 36 hours later. 

 

What would be the best way to achieve this?

1 REPLY 1
amitchandak
Super User
Super User

@chris43 , You can write down a cross table new column

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

Example

new column in Table1

Minx(filter(Table1, Table1[event] =table2[event] && Table2[Time]> Table1[Time]), Table2[Time])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors