Creating Dynamic Column Selection

Mitchell_Collier

New Member
Joined
May 27, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to get all of the columns from my merged query to populate dynamically. Item Quantity (2) is a table with rows of items and quantity by month in columns. Can anyone figure out this error?

= Table.ExpandTableColumn(#"Merged Queries2", "Item_Quantity (2)", List.Union(List.Transform(Month[Month]), each Table.ColumnNames(_)))

Expression.Error: 1 arguments were passed to a function which expects 2.
Details:
Pattern=
Arguments=




  • Month Query (with Month as column name)

    Month
    February
    March
    April
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,215,338
Messages
6,124,360
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top