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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Displaying specific value from the field

I have a field called "PAYMENT_STATUS_FLAG" and what i want to do is to only display the Count of the 'N".

paymntStatusFlag.PNG

I tried this expression

paymnt2.PNG

I'm supposed to get this value

Paymnt3.PNG

However my expression does'nt work and instead i get the count for the whole "PAYMENT_STATUS_FLAG" .

paymnt4.PNG

I wonder if anyone could help me out, Thanks!

5 Replies
adamdavi3s
Master
Master

count({<PAYMENT_STATUS_FLAG={'N'}>}PAYMENT_STATUS_FLAG)

sum(if(PAYMENT_STATUS_FLAG='N',1,0))

Anonymous
Not applicable
Author

Try

count({<PAYMENT_STATUS_FLAG={'N'}>}PAYMENT_STATUS_FLAG)

Hope this helps!

Not applicable
Author

Hi Adam  the first statement alone helped solve the problem. Thanks so much!

Not applicable
Author

Hey qlikdeez

I'm able to get the desired value, Thank you so much!:)

sunny_talwar

please close the thread by marking correct and helpful responses.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny