Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I am trying to merge two tables together. The first table is a jobs table, which provides an employee their start time, end time and location. I'd like to merge this will a bed allocation table, so that if the shift is at the same location and within the allocation date range, then the Job. No. should be allocated to the Bed Allocation table.
Jobs Table:
Bed Allocation:
Bed Allocation (Once Merged):
Solved! Go to Solution.
Hi @kellzp22 ,
You can use the Merge fetaure.
Sample data
Jobs:
Bed Allocation:
1.Select 'Merge Queries as New', and then set as follows, click OK.
2.Expand all columns.
3.Add a custom column.
4.Filter out the rows with a custom column value of 1, then remove unnecessary columns, and the final result.
Result:
You can check more details from the attachment.
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 @kellzp22 ,
You can use the Merge fetaure.
Sample data
Jobs:
Bed Allocation:
1.Select 'Merge Queries as New', and then set as follows, click OK.
2.Expand all columns.
3.Add a custom column.
4.Filter out the rows with a custom column value of 1, then remove unnecessary columns, and the final result.
Result:
You can check more details from the attachment.
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.
What if some Locations has no data in Allocation table, they will be filtered, I want to keep the null values?
@kellzp22
in the both the Tables you must have similar column (1 column atleast) which is now missing,
So, Create a columns in both Tables with Location & EndDateTime and the try merging based on that column in both the tables to get the result !Share you kudos
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |