Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
80 | |
65 | |
52 | |
50 |
User | Count |
---|---|
211 | |
87 | |
80 | |
69 | |
60 |