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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

Dupes

Concern

Hear is the sample QVW With Data I have

I need only row with primary key 566565

     thanks in advance

Labels (1)
6 Replies
MK_QSL
MVP
MVP

Only({<[Primary key] = {566565}>}[Primary key])

dseelam
Creator II
Creator II
Author

Manish

I have many Primary keys

I need all the  Primary Keys with more than one Con Number

maxgro
MVP
MVP

in chart you can replace your dim [Primary key] with

=if([Primary key]=566565,[Primary key], null())

and then check the flag "Suppress when value is null"

in script you can filter adding a where clause

LOAD [Primary key],

     status,

     [Con Numbers]

FROM

..............................

Where

  [Primary key]=566565;

dseelam
Creator II
Creator II
Author

Hi Massimo

Thanks for the reply I am not looking for one Primary Key

I am checking for all the primary Keys in my data model with 2 Con Numbers

maxgro
MVP
MVP

Directory;

Source:

load * where cnt > 1;

load [Primary key],

     count (distinct [Con Numbers]) as cnt

FROM

[Book1 (1) (1).xlsx]

(ooxml, embedded labels, table is Sheet1)

group by [Primary key];  

Table:

Inner Keep (Source)

LOAD [Primary key],

     status,

     [Con Numbers]

FROM

[Book1 (1) (1).xlsx]

(ooxml, embedded labels, table is Sheet1);

MK_QSL
MVP
MVP

Only({<[Primary key] = {"=COUNT([Con Numbers])>1"}>}[Primary key])