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

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

Reply
rahul632soni
Helper I
Helper I

how to get value from one table to another table after applying range filter ?

I have two table . 

First Table

Header NameBase UnitStart Engine HoursStop Engine Hours
AHAJW210HKMG6799241030
AHAJSR26VTNG680048980.91005.8
AHAJSR26HKMG679915947.8974.3
BHAJSR26HLMG679906739.4756.1
BHAJW210HKMG6799241234.51283.7
BHAJSR26VTNG6800481006.91051.7
CHAJSR26HKMG679915789.5875.8
CHAJW210VVNG6805211.55.1
CHAJW210HKMG6799241284.11333.5
DHAJSR22HKMG679922254270
DHAJSR22HPMG679921290310
EHAJSR22HPMG679921290310
EHAJSR22HPMG679921290310
AHAJW210HKMG679924200

230

 

 

Second Table

vin17ENG_HOURSgps_timestampAverage of AMBIENT_AIR_TEMPERATURE
HAJW210HKMG679924107/29/2021 15:5945
HAJW210HKMG679924207/29/2021 16:0045
HAJW210HKMG679924307/29/2021 16:0245
HAJW210HKMG679924407/29/2021 16:0344
HAJSR26VTNG680048507/29/2021 16:0442
HAJSR26VTNG680048607/29/2021 16:0542
HAJSR26VTNG680048707/29/2021 16:0643
HAJW210HKMG679924807/29/2021 16:0744
HAJW210HKMG679924907/29/2021 16:0844
HAJW210HKMG6799241007/29/2021 16:0945
HAJW210HKMG6799241107/29/2021 16:1045
HAJW210HKMG6799241207/29/2021 16:1146
HAJW210HKMG6799241307/29/2021 16:1246
HAJW210HKMG6799241407/29/2021 16:1346
HAJW210HKMG6799241507/29/2021 16:1446
HAJW210HKMG6799241607/29/2021 16:1546
HAJW210HKMG6799241707/29/2021 16:1646
HAJW210HKMG6799241807/29/2021 16:1847
HAJW210HKMG6799241907/29/2021 16:1947
HAJW210HKMG6799242007/29/2021 16:2047
HAJW210HKMG6799242107/29/2021 16:2348
HAJW210HKMG6799242207/29/2021 16:2649
HAJW210HKMG6799242308/5/2021 14:4427
HAJSR26HLMG679906229.88/6/2021 16:5649
HAJSR26HLMG679906229.88/6/2021 16:5749
HAJSR26HLMG679906229.88/6/2021 16:5850
HAJSR26HLMG679906229.88/6/2021 16:5951
HAJSR26HLMG679906229.98/6/2021 17:0051
HAJSR26HLMG679906229.98/6/2021 17:0151
HAJSR26HLMG679906229.98/6/2021 17:0249
HAJSR26HLMG679906229.98/6/2021 17:0348
HAJSR26HLMG679906229.98/6/2021 17:0448
HAJSR26HLMG679906229.98/6/2021 17:0548
HAJSR26HLMG6799062308/6/2021 17:0649
HAJSR26HLMG6799062308/6/2021 17:0748
HAJSR26HLMG6799062308/6/2021 17:0848
HAJSR26HLMG6799062308/6/2021 17:0946
HAJSR26HLMG6799062308/6/2021 17:1045
HAJSR26HLMG6799062308/6/2021 17:1147
HAJSR26HLMG679906230.18/6/2021 17:1249
HAJSR26HLMG679906230.18/6/2021 17:1351
HAJSR26HLMG679906230.18/6/2021 17:1452
HAJSR26HLMG679906230.18/6/2021 17:1554
HAJSR26HLMG679906230.18/6/2021 17:1756
HAJSR26HLMG679906230.28/6/2021 17:1957
HAJSR26HLMG679906230.28/6/2021 17:2157
HAJSR26HLMG679906230.28/6/2021 17:2257
HAJSR26HLMG679906230.28/6/2021 17:2358
HAJSR26HLMG679906230.28/6/2021 17:2458
HAJSR26HLMG679906230.38/6/2021 17:2658
HAJSR26HLMG679906230.38/6/2021 17:3058
HAJSR26HLMG679906230.48/6/2021 17:3158
HAJSR26HLMG679906230.48/6/2021 17:3358
HAJSR26HLMG679906230.48/6/2021 17:3457
HAJSR26HLMG679906230.48/6/2021 17:3558
HAJSR26HLMG679906230.58/6/2021 17:3758
HAJSR26HLMG679906230.58/6/2021 17:3858
HAJSR26HLMG679906230.58/6/2021 17:3957
HAJSR26HLMG679906230.58/6/2021 17:4057
HAJSR26HLMG679906230.58/6/2021 17:4157
HAJSR26HLMG679906230.58/6/2021 17:4257
HAJSR26HLMG679906230.68/6/2021 17:4358
HAJSR26HLMG679906230.68/6/2021 17:4457

How Can I lookup Header Name from Table one into Table two where Engine hours Fall between Start Engine Hours  and Stop Engine Hours for each Base Unit ?

2 REPLIES 2
amitchandak
Super User
Super User

@rahul632soni , new column example

 

MAxx(filter(Table1, Table1[Base Unit] = Table2[Ven17] && Hour(Table2[gps_timestamp]) >= Table1[Start Engine Hours] && Hour(Table2[gps_timestamp]) <= Table1[End Engine Hours] ), [Header Name])

 

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

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

@amitchandak  Hey 

How can we compare Time stamp and Engine hours , we have Engine hours to compare from Both Tables .

Cant we use simply that from Table 1 ?

 

Regards

Rahul

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.