Hi Hive Mind,
I quite often make a subset of my data table.
My current method is
- Find a value that is representative of my subset
- Right click -> Select matching cells
- Tables -> Subset à selected rows, all columns
- Save file
Alternatively, I will
- Use “Save as” to create a new file
- Find a value that is representative of my subset
- Right click -> Select matching cells
- Invert selection
- Delete Rows
I do this many times on a weekly basis… and it is painful…
So here is my idea that I need help with:
I want to create a script that when I have selected my matching cells I can click a button that will make a subset of the selected rows:
Here is my best shot so far (it doesn’t work)
Dt = current data set();
My_list = dt << Get Selected();
Dt << Subset(
Selected Rows( 0 ),
List;
Selected columns only( 0 )
);
Do you have other ideas, or should I do something completely different?
Cheers,
Christian