If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
Hello Everyone,
i have a question, i m need to count the status value ,
e.g status have values (new hire,fired ) ,Now have column status with the values of (new hire,fired ) i want to count the new hired and count fired , whats the function syntax ?
Refer this post
Set Analysis: syntaxes, examples
Count of Hired
COUNT( {<Status={'new hire'}>} Status)
Count of fired
COUNT( {<Status={'fired'}>} Status)
Refer this post
Set Analysis: syntaxes, examples
Count of Hired
COUNT( {<Status={'new hire'}>} Status)
Count of fired
COUNT( {<Status={'fired'}>} Status)
Dear vineeth,
Gr8 that's works,but what if i want to to this function on same field ? like status field count both values on same column ? then how can i use it in measure expression ?
Create a straight table with Dimension as "Status"
and
Expression
= Count(Status)
Department | Total Employees | Employees Left/ Fired | Employees Hired |
Admin | 5 | 2 | |
Production | 5 | 7 | |
Sales | 0 | 3 | |
Total |
| 10 | 12 |
is this your source data? how should the expected output look like?
on emoloyee left/fired colum has 2 values ,(fired and resigned) need to count on same field with 2 values on same colum
hello vineeth,
dear i want to count 2 values of same colum ,
can i do like this ?
COUNT( {<STATUS={'Resigned'}>} STATUS) and COUNT( {<STATUS={'Weeded Out'}>} STATUS)
in same expression ?
try as below
COUNT( {<STATUS={'Resigned','Weeded Out'}>} STATUS)
Set Analysis: syntaxes, examples
thanks alot i works perfectly