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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I need to merge these two tables which contain Price and Qty. I have to merge using using Date and Time. Can anyone solve this as there exisits two Time columns ?
Solved! Go to Solution.
In this scenario, you can SUMMARIZE your QTY table group on Time_1 and Time_2 into two calculated tables, then UNION these two tables together and build relationship to Price table on Time column.
Or you can create a conditional LOOKUP column in Price table to get the QTY from QTY table:
Qty =
IF (
LOOKUPVALUE ( QTY[QTY], QTY[Time1], Price[Time] ) = BLANK (),
LOOKUPVALUE ( QTY[QTY], QTY[Time2], Price[Time] ),
LOOKUPVALUE ( QTY[QTY], QTY[Time1], Price[Time] )
)
Regards,
In this scenario, you can SUMMARIZE your QTY table group on Time_1 and Time_2 into two calculated tables, then UNION these two tables together and build relationship to Price table on Time column.
Or you can create a conditional LOOKUP column in Price table to get the QTY from QTY table:
Qty =
IF (
LOOKUPVALUE ( QTY[QTY], QTY[Time1], Price[Time] ) = BLANK (),
LOOKUPVALUE ( QTY[QTY], QTY[Time2], Price[Time] ),
LOOKUPVALUE ( QTY[QTY], QTY[Time1], Price[Time] )
)
Regards,
@siva3012you have to create an unique value. If your tables doesn't have this property, you can always create your own by concatenating the columns (at Query Editor with a calculated column) that is equal in both tables and then using them to merge.
create a calculated column combining the date and the time1 for both tables then merge on that created column
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!