Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count the number of times the order number occurs

Hi

I wanted to count the order number for how many time it occurs, below it the screen shot

this will help me to bucket based on orders, Please help

DisPOAmountPO.numbersLine.numbersUniqueCount
105901FKI10590122
105902FKI10590222
105903FKI10590322
105904FKI10590422
105905FKI10590522
105906FKI10590622
105907FKI10590722
105908FKI10590822
105909FKI10590922
1059010FKI105901022
1059011FKI105901122
1059012FKI105901222
1059013FKI105901322
1059014FKI105901422
1059015FKI105901522
1059016FKI105901622
1059017FKI105901722
1059018FKI105901822
1059019FKI105901922
1059020FKI105902022
1059021FKI105902122
1059022FKI105902222

Regards

AJ

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Check attached smaple qvw.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi,

Find below solution. In expression you can use whatever is required. As of now I just put sum of line no. to get the result

screen shot was your expected output correct.

If it is not let me know your requirement.

Not applicable
Author

I need this to happen in the back-end so I can bucket it to different category,I am able to achieve this using expression

Anonymous
Not applicable
Author

ok ... then use this code in your script... you can use applymap as well.

A :

LOAD DisPOAmount,

     PO.numbers,

     Line.numbers

FROM

(ooxml, embedded labels, table is Sheet2);

load

  PO.numbers,

  count(PO.numbers)as uniq_count

 

  Resident A

 

  group by PO.numbers

tresesco
MVP
MVP

Check attached smaple qvw.

Not applicable
Author

Thank you very much