Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Chart with count of $Field values

I want to create a straight table with dimension of "$Field" and expression of count() of field named in $Field. Pseudo code for expression would be something like:

=count( ValueOf($Field) )

I've tried:

=count($(='[' & [$Field] & ']'))

but that only works when one $Field value is selected.

Any ideas?

Thanks,

Rob

29 Replies
Not applicable

Hi Ralf

In attachment you can see my problem,for decreasing file size I select only first 100 records

So thanks

Hassan

rbecher
MVP
MVP

Thanks. I guess we're hitting a limitation here of maximum expressions per field (Count Expression) or something else. I have no idea at the moment. At least it works if one table is selected..

Astrato.io Head of R&D
marcus_sommer

I think it's related to some similar to this one: http://community.qlik.com/message/22129#22129

- Marcus

Not applicable

Thanks a lot Rolf, that's correct , this situation is better than noting and solve some problem for me .

I want to split my project to some smaller  size of filed count.

Not applicable

Hi rbecher,

Thanks for the great answers! How would you be able to count null records in $Field? I suppose it is similar to the blanks answer you gave but can't figure it out.

Thanks!

rbecher
MVP
MVP

Hi Laila,

just use NullCount() as in QVFieldObserver.qvw

- Ralf

Astrato.io Head of R&D
Not applicable

Oh I missed that! Awesome! Thanks!!!

zippo_btl
Contributor II
Contributor II

You can use formula like this to not to hit limitation:

Pick(Match($Field,$(=Concat({1}TOTAL CHR(39)&$Field&CHR(39),','))),
 
$(=Concat({1}TOTAL 'count({1}'&$Field&')',','))
  )

manoj2102
Contributor III
Contributor III

Ralf, It's an Excellent Solution

rjyadav94
Contributor II
Contributor II

 use fieldvaluecount(fieldname)