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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help needed with evaluating Count expression

Hi All,

Please find the following desired output as a table object in my report. I am stuck with the expression for calculating the count(Here count is the calculated column). What needs to be done at the report level itself if i want to have an extra column "Count" which increments itself when a task visits the same transition again, please find the following Table :

Task IDTransition InTaskTransition OutCount
10557115ProofR&DBuild1
10557115ProofR&DBuild2
10557115ProofR&DBuild3
10557115ProofR&DBuild4
10557115ProofR&DBuild5
10557115HoldR&DBuild1
10557115HoldR&DBuild2
10557115HoldR&DBuild3
10557115HoldR&DBuild4
10557115HoldR&DBuild5
10653829ReviewR&DBuild1
11562281ReviewR&DBuild1
11562281ReviewR&DEB2
11562281ReviewR&DEB3
12594118ReviewR&DEB1
15423802ProofR&DBuild1
15423802ProofR&DBuild2
15423802ProofR&DEB3
15423802ReviewR&DEB1
15423802ReviewR&DEB2
15423802ReviewR&DEB3
15423802ReviewR&DBuild4

should this be achieved at script level/report level, if so can you guys help me with the expression.

I think we should write and iteration statement if we have to handle this at script level. Any help in this regard is highly appreciated.

Thanks & Regards,

Abhinay.

3 Replies
swuehl
MVP
MVP

If I understood your request correctly, I would do this in the script:

LOAD RecNo() as RecID,

     [Task ID],

     [Transition In],

     Task,

     [Transition Out],

    AutoNumber(RecNo(), [Task ID] & [Transition In]) as Count

FROM

[http://community.qlik.com/thread/80218?tstart=0]

(html, codepage is 1252, embedded labels, table is @1);

Not applicable
Author

Hi Swuehl,

Thanks for the reply. Could you help me with the expression if i would like to accomplish the same at the report level using Table object.

Thanks,

Abhinay.

swuehl
MVP
MVP

Try an expression like

=if(isnull(above( RecID)),1,rangesum(above("ExpCount"),1))

[where I used ExpCount as expression label]

Have a close look at the dimensions I used (TaskID, Transition In, RecID), and that I hided RecID dimension, but sorted after that field.