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

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

List only the duplicate values in the Pivot

Hi Team,

Need your help in displaying only the duplicate values from the data.

Kindly refer the attachment.S_No is the key.

I would like to list the highlighted(all 3 headers) values(only) in the pivot.

It will be great if this can be done in the set analysis instead of modifying the datamodel script

Thanks & Regards

Jeba

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

11 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example


talk is cheap, supply exceeds demand
sunny_talwar

Try this script:

Table:

LOAD S_No,

    Status,

    Date

FROM

[..\..\Downloads\Test (2).xlsx]

(ooxml, embedded labels, table is Sheet1);

Join (Table)

LOAD S_No,

  Status,

  Count(S_No & Status) as Count

Resident Table

Group By S_No, Status;

And then create a chart like this using the following expression:

=Only({<Count = {">1"}>}Date)

Capture.PNG

I hope this will help.

Best,

Sunny

pokassov
Specialist
Specialist

if(aggr(Count(TOTAL <S_No, Status> DISTINCT Date),S_No, Status)>1,1)

Anonymous
Not applicable
Author

Hi Gysbert,


Thanks for your quick reply.


This works perfectly for this scenario,however it doesn't work when I have some other scenario with the same concept.

Will the same scenario not work when we have the S_No as text format?Updated file attached for your kind reference.

Kindly help

Thanks & Regards
Jeba


Anonymous
Not applicable
Author

Hi pokassov,

Though it displays the duplicate values,but it displays only one row from the duplicate

Regards

Jeba

sunny_talwar

You want to see them twice or seeing them once will be enough??? Below it is showing that those two S_No have more than 2 entries in the database.

Capture.PNG

HTH

Best,

Sunny

Anonymous
Not applicable
Author

Hi,

I want to see twice/thrice or based on the actual duplicate entries

Is that possible?

Thanks & Regards

Jeba

Anonymous
Not applicable
Author

also one more point.

Can this be done only based on the set analysis without disturbing the datamodel?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand