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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count Of Field

Hi All

Need Help with this please.

Count(Distinct({<Field = {[0]}>}%Acct))

i want to Count %Acct but the field is [0]

Thanks Again!

29 Replies
Chanty4u
MVP
MVP

try this


SUM({<[field]=[0]>} %ACT))

Anonymous
Not applicable
Author

Please see the New upload

And check expression, this is what i needed.

sunny_talwar

I still don't understand Count(Distinct(%Acct) for 0 will be equal to Count(Distinct %Acct)

What is the number that you are expecting to see here?

Capture.PNG

Chanty4u
MVP
MVP

chk dis

Anonymous
Not applicable
Author

I want to see how many accounts made up for month 0 and how many made up for month 1

In my data there is different data per month and month goes upto 72...HAHA

sunny_talwar

I have no idea what you are trying to do. Can you show some screenshots of your real data?

Anonymous
Not applicable
Author

How can i make this static so it does not change please

=sum(aggr(count(distinct %OurRef),[0]))

so i guess  i have to add a 1 somewhere?

Thanks

sunny_talwar

For that you can do this:

=Sum({1}Aggr(Count({1}distinct %OurRef),[0]))

Anonymous
Not applicable
Author

Thanks All for the Help

Chanty4u
MVP
MVP

cool.. u got the solution