Subscribe Bookmark RSS Feed

How can I only select odd raw?

bernie426

Community Trekker

Joined:

Feb 9, 2015

I have table with over 300,000 of data point, how can I use the "formula-raw state" function to write a command to only select even/odd raws?

1 REPLY
ms

Super User

Joined:

Jun 23, 2011

// Select by script

Current Data Table() << select where( Mod( Row(), 2 ) );//select odd rows

Current Data Table() << select where( !Mod( Row(), 2 ) );//select even rows

// Or by column formula of Row State Column

Current Data Table() << New Column("Select Odd",Row State, set formula(Selected State(Mod(Row(),2))));