Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all.
Been a big fan and usage of this community over the years for solutions.
This problem has me a bit stumped and are hoping you can assist.
Will do my best to describe it.
I need to link a column from one data table to another data table, based on dates of the first table.
For example, I have a number of monthly HR reports that show staff and their department. The reports will differ overtime as staff change departments.
The second table I have is transaction data which contains the date of the transaction and the staff member.
The problem I am trying to solve is, I need to link the transaction to the department that staff member was linked to at the time of the transaction. In other words, the transaction date needs to query the corresponding HR table for that month.
Eg.
| HR Report Table - May 2022 | Staff Name | Department |
| John Doe | Department A | |
| Jane Smith | Department B |
| HR Report Table - June 2022 | John Doe | Department C |
| Jane Smith | Department B |
| Transaction Table | 15 May 2022 | John Doe | Department A |
| 15 June 2022 | John Doe | Department C |
Any suggestions how I can solve for this?
Hi,
- merge all the HR Report Tables into one
- In the merged HR Report Table: Add a custom column containing Month & Staff Name
- In the Transaction Table: Add a custom column containing Month & Staff Name (must be the same as the custom column in the merged HR Report Table)
- Connect the Transaction table and the HR Report Table by the newly Created Columns
BR
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 | |
| 2 |