Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jimbo20814
Creator
Creator

tMap - Numeric.sequence

Hi, I'm trying to duplicate SQL row_number. I know that for example the tMap Numeric.sequence(row1.col1,1,1) would be equivalent to SQL ROW_NUMBER() OVER (PARTITION BY row1.col2) but what if there are multiple fields to partition by? For example, ROW_NUMBER() OVER (PARTITION BY row1.col2, row1.col2, row1.col3)

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Did try the following expression:

Numeric.sequence(row1.col1+"_"+row1.col2+"_"+row1.col3, 1, 1) 

View solution in original post

4 Replies
Anonymous
Not applicable

@mbocquet, can you please show us an example to explain your requirement and what are your expected output?

Regards
Shong
TRF
Champion II
Champion II

Did try the following expression:

Numeric.sequence(row1.col1+"_"+row1.col2+"_"+row1.col3, 1, 1) 
jimbo20814
Creator
Creator
Author

Bam! Thank you TRF!

TRF
Champion II
Champion II

Bam Bam!
You're welcome