I have a datatable that has two columns.
How do I slice the second only to write to an Excel worksheet?
I tried
%DataTable[:][1]%
but this returned the second row!
I thought that the datatable was addressable like Python dataframes
Solved! Go to Solution.
PAD only knows data table and data row, not columns, so you can loop through the rows of a column by %DatatableVariableName[i]['ColumnName']% or just get a column as a list:
PAD only knows data table and data row, not columns, so you can loop through the rows of a column by %DatatableVariableName[i]['ColumnName']% or just get a column as a list:
Awesome!
Set variable to %DataTable[1]% worked
Retrieve data table column into list action also works!
Good to know that slicing by rows works though, e.g., %DataTable[3:]% returns all rows from the fourth!💡
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.