# New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
cancel
Showing results for
Did you mean:
Partner - Creator III

## Find number of occurence in several fields

Hi Qlikers,

I would like to find a way to count how many time I find a specific value in several fields. My table looks like this

ID,

A,

B,

C,

D,

etc ...

Resident MyData;

How can I calculate how many time I find for each ID (unique in my table) how many time I find value 'x' in dimenssion A, B, C, D, etc...

For information, I have more than 200 fields so I try to find and easy way instead of doing something like :

if(A like '*x*',1,0)  +   if(B like '*x*',1,0)  +   if(C like '*x*',1,0)  + etc....

Also, one last thing, 'x' is unique in each dimenssion.

1 Solution

Accepted Solutions
MVP

May be to do this... you can first use The Crosstable Load to convert your 200 something fields into a single field... and then count?

3 Replies
Creator

something like this?:

COUNT({<[ID]={'A'}>}[ID])

MVP

May be to do this... you can first use The Crosstable Load to convert your 200 something fields into a single field... and then count?

Partner - Creator III
Author

Hi,

Perfect the cross table solution. I never used it for this purpose but nice move .

Then I performed a Group By on my ID and I had it done.

Thanks