cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
bernie426
Level II

How can I only select odd raw?

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 1
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How can I only select odd raw?

// 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))));