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
Hi, I have a data table that tracks employees who have left my company and then returned. I need the Date data when they have returned on the same row, as their singular NI_Number, please. How can I transform Table 1 into Table 2, adding the three new columns at the end?
Table 1
| NI_Number | Name | Title | Date_Joined | Date_Left | Days_Employed |
| NI112233 | Dave Jones | Customer Service | 01/04/2024 | 20/05/2024 | 49 |
| NI112233 | Dave Jones | Customer Service | 01/06/2024 | 10/06/2024 | 9 |
| NI884455 | Eric Davies | Customer Service | 01/07/2024 | 10/10/2024 | 101 |
| NI884455 | Eric Davies | Customer Service | 20/10/2024 | 28/10/2024 | 8 |
| NI009900 | Lloyd Williams | Store Manager | 01/04/2024 | 10/09/2024 | 90 |
| NI009900 | Lloyd Williams | Store Manager | 01/10/2024 | 11/11/2024 | 41 |
| NI887711 | Ian Ians | Store Manager | 10/05/2024 | 10/10/2024 | 153 |
| NI887711 | Ian Ians | Store Manager | 01/11/2024 | 327 |
Table 2
| NI_Number | Name | Title | Date_Joined | Date_Left | Days_Employed | Date_Employed2 | Date_Left2 | Days_Employed2 |
| NI112233 | Dave Jones | Customer Service | 01/04/2024 | 20/05/2024 | 49 | 01/06/2024 | 10/06/2024 | 9 |
| NI884455 | Eric Davies | Customer Service | 01/07/2024 | 10/10/2024 | 101 | 20/10/2024 | 28/10/2024 | 8 |
| NI009900 | Lloyd Williams | Store Manager | 01/04/2024 | 10/09/2024 | 90 | 01/10/2024 | 11/11/2024 | 41 |
| NI887711 | Ian Ians | Store Manager | 10/05/2024 | 10/10/2024 | 153 | 01/11/2024 | 327 |
Solved! Go to Solution.
Hi,
I would create an index per Ni_Number (e.g. Solved: Index column based on value/category - Microsoft Fabric Community). With this index you can then create a matrix, where the index is your column, therefore in case of three entries per Ni-Number you would see 3 columns (or 9 due to three measures joined. left and employed).
Regards,
Oktay
If it helped you would appreciate a KUDOS and mark the answer as solution.
Hi @RichOB
We’d like to confirm whether your query has been addressed. If you still need help, please let us know and we’ll provide further guidance.
Hi @RichOB
Have you had a chance to look at the earlier response? Let us know if anything is unclear, and we’ll provide further clarification.
Hi @RichOB
We wanted to follow up to check if you’ve had an opportunity to review the previous responses. If you require further assistance, please don’t hesitate to let us know
Hi,
I would create an index per Ni_Number (e.g. Solved: Index column based on value/category - Microsoft Fabric Community). With this index you can then create a matrix, where the index is your column, therefore in case of three entries per Ni-Number you would see 3 columns (or 9 due to three measures joined. left and employed).
Regards,
Oktay
If it helped you would appreciate a KUDOS and mark the answer as solution.
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 |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |