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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression help

Hi,

This will be a simple I guess so apologies if it's rather basic.

With have a field in some data called 'responded to'. The possible answers are 'Y' and 'N' which have been populated in the fields.

On our app we want 2 charts - once showing breakdown of 'Y' by area and the other 'N' by area. The answer is an expression in the chart but we can't seem to get it right.

Can someone please help? Below is the expression we have. Its says its ok but its not reflecting the data.

Count([Responded to letter?] = 'Y')

Chris

1 Solution

Accepted Solutions
awhitfield
Partner - Champion
Partner - Champion

HI Chris

=Count({<RespondedToLetter={Y}>}RespondedToLetter)

so you are counting the number of RespondedtoLetter where the value of that field = Y

Cheers

Andy

View solution in original post

5 Replies
priyarane
Specialist
Specialist

Count({<Respondtoletter = {'Y'}>})Field)

Not applicable
Author

Where you have 'Field' do we put something in there to replace that?

priyarane
Specialist
Specialist

So, what ever your counting.

For Ex:

Count for country

then Count(Country)

awhitfield
Partner - Champion
Partner - Champion

HI Chris

=Count({<RespondedToLetter={Y}>}RespondedToLetter)

so you are counting the number of RespondedtoLetter where the value of that field = Y

Cheers

Andy

Not applicable
Author

Hi,

Try this,

IF(Responded to letter?] = 'Y',COUNT('Y'),COUNT('N')


Rgds,

Priyantha.