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

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

count conditional

Hello,

i need count some rows

example

DATENAMEEQUIP NAMEKIND OF ACTIVITYSTART ACTIVITYSTATUS
31-8-12HELMAN1BOGOTA 1M.P 22:00OK
31-8-12HELMAN1BOGOTA 1M.P23:00OK
1-9-12WILMARBOGOTA 2EMERGENCY08:00PENDING
1-9-12LEONARDOBOGOTA 3TEST07:00PENDING

I need count the rows  that have the same information as one row.

i have this  comand line

 

Count

(DISTINCT [Kind of Activity]&Date&[Equipment Name])

With this i count the number of activties, but i need to add other condition that if de STATUS column is OK, the activity must to be count.

thank you.

1 Solution

Accepted Solutions
whiteline
Master II
Master II

=Count({$<STATUS={"OK"}>} [Kind of Activity]&Date&[Equipment Name])

View solution in original post

5 Replies
Not applicable
Author

Hai,

you can use set analysis like

=Count({$<STATUs={"OK"}>}Kind Of Activity)

are you looking for this or something else

Thanks,

Mukram.

pgalvezt
Specialist
Specialist

=Count({$<STATUS={"OK"}>}Distinct Kind Of Activity)

Hope Help you!

whiteline
Master II
Master II

=Count({$<STATUS={"OK"}>} [Kind of Activity]&Date&[Equipment Name])

Not applicable
Author

thank you

Helman

Not applicable
Author

thank you