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.
I need to return value from table2 for max date before the Date in table 1,
below table shows the illustration
Table1 (Main Table)
Date | ID | VALUE |
30-06-2023 | 9999 | ??? it should return X1 |
30-08-2023 | 9999 | ??? it should return B6 |
Table2
Date | ID | Value |
01-05-2023 | 9999 | Y6 |
15-05-2023 | 9999 | X1 |
10-07-2023 | 9999 | B6 |
Solved! Go to Solution.
Hi @azalazi ,
You can use Merge Queries.
Merge like the following.
Create a custom to filter the Date.1.
Filter out the nulls.
Group by as follows.
Expand the All Rows column.
Add another custom column to filter again.
Remove the unneeded columns and you get the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @azalazi ,
You can use Merge Queries.
Merge like the following.
Create a custom to filter the Date.1.
Filter out the nulls.
Group by as follows.
Expand the All Rows column.
Add another custom column to filter again.
Remove the unneeded columns and you get the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
15 | |
15 | |
13 | |
12 | |
11 |