Forum Discussion
Multiply two tables
- 2 years ago
- Add a custom column with a List of the Reporting Periods
- Expand that column to new rows.
Code might be something like:
#"Added Custom" = Table.AddColumn(#"Previous Step", "Reporting Period", each #"Reporting Periods", type {text}), #"Expanded Reporting Period" = Table.ExpandListColumn(#"Added Custom", "Reporting Period")If your List of Reporting periods is in a table named Reporting Periods, you might need to change the reference to a table column type reference, eg #"Reporting Periods"[Column Name]
- 2 years ago
Hello KervBruce,
you only need to add two lines of code:let Source = YourProjectTable, ColumnMonth = Table.AddColumn(Source, "Month", each YourDatesTable), OpenColumnMonth = Table.ExpandTableColumn(ColumnMonth, "Month", {"Month"}, {"Month"}) in OpenColumnMonthBest regards from Germany
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Add a custom column with a List of the Reporting Periods
- Expand that column to new rows.
Code might be something like:
#"Added Custom" = Table.AddColumn(#"Previous Step", "Reporting Period", each #"Reporting Periods", type {text}),
#"Expanded Reporting Period" = Table.ExpandListColumn(#"Added Custom", "Reporting Period")
If your List of Reporting periods is in a table named Reporting Periods, you might need to change the reference to a table column type reference, eg #"Reporting Periods"[Column Name]
- ManuelBolz2 years ago
Responsive Resident
Hello KervBruce,
you only need to add two lines of code:let Source = YourProjectTable, ColumnMonth = Table.AddColumn(Source, "Month", each YourDatesTable), OpenColumnMonth = Table.ExpandTableColumn(ColumnMonth, "Month", {"Month"}, {"Month"}) in OpenColumnMonthBest regards from Germany
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- KervBruce2 years ago
Advocate I
That's excelent, thank you