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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count if

Hi,

I want to count the column "workerid" where the field isapplies='appliead' else i want to show the value  "0"

i have the table:

WorkerIDIsAppliedApplied Job Countthe result I want
4202Applied22
24875Not Applied10
8796Not Applied10
8745Not Applied10

i have the folowing formula

count({<IsApplied-= {"=if((Not Applied"}>} WorkerID_WorkerDetails)

Which shows the result shown in the column "Applied Job Count" in the table above



Thanks in advance

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

or maybe you just need this

=if(IsApplied ='Applied',[Applied Job Count],0)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

11 Replies
prma7799
Master III
Master III

Try like this

=count({<IsApplied -= {"Not Applied"}>}WorkerID)

Not applicable
Author

Now I get the result


WorkerIDIsAppliedApplied Job Count
4202Applied2

worker that did not apply is not shown in the table,

the result i want,is to show also the workers who did not apply, with the value "0".

vinieme12
Champion III
Champion III

uncheck "Supress Zero values" in PResentation tab

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

or maybe you just need this

=if(IsApplied ='Applied',[Applied Job Count],0)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
devarasu07
Master II
Master II

Hi,

Try to uncheck "Suppress Zero-Values" in the Presentation page  then it should work

=if(IsApplied ='Applied',Applied_Job_Count,0)

Capture.JPG

Anil_Babu_Samineni

Is this you are expecting? Added Sum over expression from Vinit

Sum(If(IsApplied = 'Applied', [Applied Job Count],0))

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vinieme12
Champion III
Champion III

Just use the expression posted above by P M and uncheck Supress Zero value, that is all you need

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
qlikview979
Specialist
Specialist

Hi,

Are you expecting like this

Untitled.png

regards

prma7799
Master III
Master III

Like this ?