cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

How can I only select odd raw?

bernie426
Level II

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