Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
y_vandijk
Contributor
Contributor

how can i use count if

hello

i'm a new user of qlik.

i want to  count  how mach track_no have status "sent"

countcount(distinct TRACK_NO) if (STATUS_EXCP_CODE = 'sent)


what is the correct syntax?

4 Replies
sergio0592
Specialist III
Specialist III

Hi,

Use a set analysis with:

count({$<STATUS_EXCP_CODE = {"sent"} >}    distinct TRACK_NO) 

sunny_talwar

As sergio0592‌ set analysis is the way to go for these kind of questions, but in case you want to learn the if syntax... it would look like this

Count(DISTINCT If(STATUS_EXCP_CODE = 'sent', TRACK_NO))

y_vandijk
Contributor
Contributor
Author

thanks you very much !!!

it is working

y_vandijk
Contributor
Contributor
Author

thanks you very much !!!

it is working