Skip to main content
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: 
Not applicable

count duplicated value in QVD

Hello Experts,

I want to generate output variable in my qvd file, please help.

20140126173458.jpg

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Left join(Table)

LOAD ID, FID, count(ID) as Output

Resident Table

Group By ID, FID

Otherwise you'll get 1 for each row.

View solution in original post

5 Replies
Not applicable
Author

Please try this as expression where ID and FID are dimensions in straight table:

=Left(aggr(Rank(FID),ID),1)

Thanks,

Angad

Not applicable
Author

Hi,

A Group By on Load should do.

Assuming you just wanna test this from you qvd file, and no null in ID:

CountTable:

LOAD ID, FID, count(ID) as Output

FROM Table.qvd(qvd)

Group By ID, FID

;

If you wanna load other data from the qvd, better do the Group By after on Resident table, it should be faster:

Table:

Load *

FROM Table.qvd(qvd)

;

Left join(Table)

LOAD ID, FID, count(ID) as Output

Resident Table

Group By ID, FID

;

Hope this helps

whiteline
Master II
Master II

Left join(Table)

LOAD ID, FID, count(ID) as Output

Resident Table

Group By ID, FID

Otherwise you'll get 1 for each row.

Not applicable
Author

Thanks mate, appreciated your help!

Not applicable
Author

Thanks mate, appreciated your help!