Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ganeshreddy
Creator III
Creator III

Multiple Value trace?

Hi All,

How to find multiple values in a specific field in script, as mentioned below.

C_No          D_No        Grade

23125          2345            A

45689          2345            C

89089          4568            A

32576          2345            B

90976          1234            C

In the above table D_No repeated 3 times, here how to identify the repetition. If it is repeated i need to perform some operations. Please help me on this.


Cheers,

Ganesh

1 Solution

Accepted Solutions
sunny_talwar

Try this script:

Table:

LOAD * INLINE [

    C_No, D_No, Grade

    23125, 2345, A

    45689, 2345, C

    89089, 4568, A

    32576, 2345, B

    90976, 1234, C

];

Join(Table)

LOAD D_No,

  Count(D_No) as Count

Resident Table

Group By D_No;


Output:

Capture.PNG


View solution in original post

2 Replies
sunny_talwar

Try this script:

Table:

LOAD * INLINE [

    C_No, D_No, Grade

    23125, 2345, A

    45689, 2345, C

    89089, 4568, A

    32576, 2345, B

    90976, 1234, C

];

Join(Table)

LOAD D_No,

  Count(D_No) as Count

Resident Table

Group By D_No;


Output:

Capture.PNG


Gysbert_Wassenaar

Perhaps you can use the Exists function:

LOAD

     C_No,

     D_No,

     Grade,

     if(Exist(D_No), 0, 1) as IsNew

FROM ...


talk is cheap, supply exceeds demand