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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,792
Messages
6,174,612
Members
452,574
Latest member
hang_and_bang

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