Forum Discussion
Add Multiple dates in Column per number
Hello,
I have a table of numbers that come from another table, another table with the same numbers and names, and a third table with the same numbers and dates.
I need to add a list of values for each number so that I can summarise data for each year in a table.
All the tables have ralationships to Table 1.
Essentially I have this:
Table 1
| 12345 |
| 56789 |
| 09876 |
| 12456 |
| 67854 |
Table 2
| 12345 | Name1 |
| 56789 | Name2 |
| 09876 | Name3 |
| 12456 | Name4 |
| 67854 | Name5 |
Table 3
| 12345 | Value1 | 01.01.2022 |
| 56789 | Value1 | 01.01.2022 |
| 09876 | Value1 | 01.01.2022 |
| 12456 | Value1 | 01.01.2022 |
| 67854 | Value1 | 01.01.2022 |
| 12345 | Value2 | 02.01.2022 |
| 56789 | Value2 | 02.01.2022 |
| 09876 | Value2 | 02.01.2022 |
| 12456 | Value2 | 02.01.2022 |
| 67854 | Value2 | 02.01.2022 |
The desired result is:
| 12345 | Name1 | Value1 | 01.01.2022 |
| 12345 | Name1 | Value1 | 02.01.2022 |
| 56789 | Name2 | Value2 | 01.01.2022 |
| 56789 | Name2 | Value2 | 02.01.2022 |
| 09876 | Name3 | Value3 | 01.01.2022 |
| 09876 | Name3 | Value3 | 02.01.2022 |
| 12456 | Name4 | Value4 | 01.01.2022 |
| 12456 | Name4 | Value4 | 02.01.2022 |
| 67854 | Name5 | Value5 | 01.01.2022 |
| 67854 | Name5 | Value5 | 02.01.2022 |
I hope this explains what I'm trying to accomplish.
Anonymous , Try to join Table2 and Table3 and you can add the columns from both tables in visual
or you can Merge tables in power query
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Merge Tables (Power Query) : https://www.youtube.com/watch?v=zNrmbagO0Oo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=16
1 Reply
- amitchandakSuper User
Anonymous , Try to join Table2 and Table3 and you can add the columns from both tables in visual
or you can Merge tables in power query
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Merge Tables (Power Query) : https://www.youtube.com/watch?v=zNrmbagO0Oo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=16