Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |