Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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

use simply

count(Distinct [Fieldname])

Kushal_Chawda

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

sunny_talwar

Kush today is your Aggr day

I am seeing Aggr() in all your proposed solutions

Anonymous
Not applicable
Author

I have attached a Test Doc

I wanted a Count of Accounts for the Group

Kushal_Chawda

Yeah, feeling like to use Aggr. Not good but requirements seems like that

Chanty4u
MVP
MVP

Count({$<filed={'[0]'}>} DISTINCT %act)

sunny_talwar

I don't see any field names as [0]

Anonymous
Not applicable
Author

Sorry  i wrote Month in Test Script

The Month should be 0 then same data for 1 then same data for 2 etc

sunny_talwar

Try this:

Sum({<Month = {0}>}Money)


Capture.PNG

sunny_talwar

Or may be a pivot table like this?

Capture.PNG

Month as second dimension here and Sum(Money) as the expression