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: 
narender123
Specialist
Specialist

How to use distinct function .

Hi All,

My current expression is :

=Count({<flag={1}>}distinct filer)

This distinct will work for monthly basis as my dimension is month wise.But I want this distinct function based on Yearly basis with the same monthly dimension.How i cant achieve this.

table:

Column      No of Filer

-----------------------------------------

Jan2014               3

Feb2014              4

Mar2014              5

Apr2014               6

-

-

Dec2014            15

Thanks,

Narender

14 Replies
Anonymous
Not applicable

try to use aggr function and use year on aggr

narender123
Specialist
Specialist
Author

Pls tell me the format

Not applicable

Hi,

Please try the following

Count(TOTAL <Year> {<flag={1}>}distinct filer)

Regards,

Joshmi

narender123
Specialist
Specialist
Author

Hi,

Its showing data, total on each month is the same.

So not working.

Thanks

narender123
Specialist
Specialist
Author

Aggr is showing wrongly data as data for against all month is showing same . So total count on each month is same.          

Peter_Cammaert
Partner - Champion III
Partner - Champion III

You can use an AsOf table here. Simple and powerful. There are other solutions if you could drop the DISTINCT clause...

See attachment.

Peter

narender123
Specialist
Specialist
Author

HI Pater,

where is the attachment??

Thanks.

narender123
Specialist
Specialist
Author

HI all,
Any one know how to sort out this???

Thanks

tresesco
MVP
MVP

People might help sort this out faster if you could create a sample excel/qvw explaining expected output.