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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
HI
I am having issues getting this right.
I have a table (table1) with columns
- CLient Name
- CID
- Country
- Go Live Date
And another table (table2) with the same columns
- Client Name
- CID
- COuntry
- Go Live Date (date format)
what I am trying to achieve is that
IF CID and Country is equal in both tables, then return the "Go Live date" from Table2
Thanks,
Solved! Go to Solution.
Hi @romovaro
Thanks for the reply from ryan_mayu .
My sample:
Table1
Table2
You can also try to create a calculated column or measure using LOOKUPVALUE.
A calculated column:
Result =
LOOKUPVALUE(
Table2[Go Live Date (date format)],
Table2[CID], Table1[CID],
Table2[Country], Table1[Country]
)
Or a measure:
Result1 =
LOOKUPVALUE(
Table2[Go Live Date (date format)],
Table2[CID], MAX(Table1[CID]),
Table2[Country], MAX(Table1[Country])
)
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @romovaro
Thanks for the reply from ryan_mayu .
My sample:
Table1
Table2
You can also try to create a calculated column or measure using LOOKUPVALUE.
A calculated column:
Result =
LOOKUPVALUE(
Table2[Go Live Date (date format)],
Table2[CID], Table1[CID],
Table2[Country], Table1[Country]
)
Or a measure:
Result1 =
LOOKUPVALUE(
Table2[Go Live Date (date format)],
Table2[CID], MAX(Table1[CID]),
Table2[Country], MAX(Table1[Country])
)
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
you can merge tables in PQ
press ctrl and select CID and Country column, then you will see numbers beside the column. Do the same in the table2.
or you can use DAX to get the date
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |