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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
claudialet
Contributor III
Contributor III

RecNo or RowNo to show duplicates ?

Hi here is my script . This load contains duplicate rows and I need to display the duplicates in a table.

Where do I place the RecNo ()   or RowNo ()  to do this ?

[Table]:


LOAD


[Sales] ,

[Order] ,

[Total],

[SortOrder] ,

   

RESIDENT [Table];

DROP TABLE [Table];



RENAME TABLE 

to
    ;

3 Replies
agni_gold
Specialist III
Specialist III

[Table]:


LOAD

RecNo()  as RecordID,

[Sales] ,

[Order] ,

[Total],

[SortOrder] ,

  

RESIDENT [Table];

DROP TABLE [Table];



RENAME TABLE 

to
    ;

claudialet
Contributor III
Contributor III
Author

so how do I use  Rec () as a dimension in a pivot table to show duplicates ?

The dimension in this case would be  Order.

JustinDallas
Specialist III
Specialist III

Hello Claude,

I would do something like this:

DATA:

LOAD * Inline

[

'FirstName'

    'Jean',

    'Claudia',

    'Van Damme',

    'Claudia'

]

;

DATA2:

LOAD *,

AutoNumber(RowNo(), FirstName) AS 'DupeCount'

RESIDENT DATA

;

DROP TABLE DATA

;

EXIT Script

;

I got this information from here:

How to show all duplicates with help of Rowno()

Also, I'm not sure how the RowNo() interacts with the AutoNumber function in the least.