Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |