Hi;
I'm trying to join two tables, however, I want the reference of the column, and not the column name. I have tried replacing the :Name("...") with Column(5), for example, and it doesn't not work. I have also tried assigning Col5 = Column(5) and then using Col5 in the script but that doesn't work, either.
I've tried searching, and I can't seem to find anything that has helped. Thanks!
Data Table( "IO Data Table" ) << Join(
With( Data Table( "EA$" ) ),
Select(
:Plant,
:Material,
:INV,
:Past Due,
:Name( "Sum(QTY, 10/31/2018)" ),
:Name( "Sum(QTY, 11/01/2018)" ),
:Name( "Sum(QTY, 11/02/2018)" ),
:Name( "Sum(QTY, 11/05/2018)" ),
:Name( "Sum(QTY, 11/06/2018)" ),
:Name( "Sum(QTY, 11/07/2018)" )
),
SelectWith( :EA$ ),
By Matching Columns( :Plant = :Plant, :Material = :Finished Good ),
Drop multiples( 0, 0 ),
Include Nonmatches( 0, 0 ),
Preserve main table order( 1 ),
Output Table( "Backlog Pivot" )
)