Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I'm trying to create a new column with values from another table, based on an ID & the column header which is a date/year value.
Tables are linked via "Code"
Table A
| Name | Code | Date |
| Adam | C | 2/25/2019 |
| Brock | A | 8/3/2019 |
| Caleb | C | 7/6/2020 |
| Josh | B | 6/1/2020 |
| John | D | 4/5/2021 |
| Sarah | A | 5/15/2021 |
| Andrew | E | 12/12/2019 |
Table B
| Code | 2019 | 2020 | 2021 |
| A | 1 | 4 | 3 |
| B | 2 | 5 | 4 |
| C | 3 | 6 | 5 |
| D | 4 | 7 | 6 |
| E | 5 | 8 | 7 |
New Column Results
| Name | Code | Date | Value |
| Adam | C | 2/25/2019 | 3 |
| Brock | A | 8/3/2019 | 1 |
| Caleb | C | 7/6/2020 | 6 |
| Josh | B | 6/1/2020 | 5 |
| John | D | 4/5/2021 | 6 |
| Sarah | A | 5/15/2021 | 3 |
| Andrew | E | 12/12/2019 | 5 |
Solved! Go to Solution.
Create a calculated column...
Create a calculated column...
This works great! THANK YOU!
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 |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 37 | |
| 32 | |
| 21 |