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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

View duplicates in pivot table

Hello,

in the attached qvw file I'd like to show all the records (as you see now) or only those one which have two places for the same code (only the two records for the B code).

Can someone help me, please?

Thank you

1 Solution

Accepted Solutions
swuehl
MVP
MVP

There are two tables now...

But right, it should be easier to include the check into the expression:

=if(ViewDuplicates,Sum({<Code = {"=count(distinct Place)>1"}>}Qty), Sum(Qty))

View solution in original post

8 Replies
swuehl
MVP
MVP

Maybe like attached?

Anonymous
Not applicable
Author

Nope.

I'd like to show the entire table (when the "All" button is set) or only the two records og the B code

Code    Place    Qty

B          1           15

             2           20

When the "Duplicates" button is set.

Hope it's clear now.

Thank you.

swuehl
MVP
MVP

Hm, unclear why you don't see what I see:

DuplicatesFilter1.bmp

and

DuplicatesFilter2.bmp

Is this what you expect to see?

On what QV version are you? If not specified, I always assume a recent version.

Anonymous
Not applicable
Author

Well, I expected to see what you see but it isn't what I see

All.bmp

Duplicates.bmp

I'm sorry I haven't written my QV version 10.00.9731.9 SR6.

Thank you again.

swuehl
MVP
MVP

I replaced the conditional expression (which probably causes the issue using QV10) with a show condition in layout tab.

Anonymous
Not applicable
Author

Very Good! Now it works properly. I thought that applying a condition on the Show box of the layout tag makes all the table visible or not...how it works only for specified rows?

swuehl
MVP
MVP

There are two tables now...

But right, it should be easier to include the check into the expression:

=if(ViewDuplicates,Sum({<Code = {"=count(distinct Place)>1"}>}Qty), Sum(Qty))

Anonymous
Not applicable
Author

This is the cleanest solution

Thank you for the help.