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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to deriver line number for group of data.

Let say that I have this raw data:

Data:
LOAD * Inline [
FirstId, SecondId, Start, End
1,1, 8, 10
1,1,13,15
2,1,4,5
3,1,10,14
1,2,10,13
2,2,2,4
2,2,18,19
];


And a presentation level will look like:

FirstIdSecondIdmin(Start)max(End)
11815
121013
2145
22219
311014

But I want to see it like this:

FirstIdSecondIdLineNOmin(Start)max(End)
111810
1121315
1211013
21145
22124
2221819
3111014

The question is: how to calculate LineNo on presentation or script level?

Definitely, I can calc something like DataId to brake it down by line. But I need force it to begin with 1 for each unique combination of FirstId and SecondId values.

See attachments for more details.

1 Solution

Accepted Solutions
hector
Specialist
Specialist

Hi

i've made this test, and my result is the same what you asking for

See the attachment and tell us if this is correct for you

Rgds

View solution in original post

2 Replies
hector
Specialist
Specialist

Hi

i've made this test, and my result is the same what you asking for

See the attachment and tell us if this is correct for you

Rgds

Not applicable
Author

Thank you. This is exactly what I'm looking for.