
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
set analysis with multiple conditions Qlik Sense
I am trying to get distinct number of Operators in the current day (for example there are 20 operators, today were working only 5 operators so must return 5)
So to do this i want to apply 2 conditions, when Day is today and when Number of tasks is not 0 because when there are tasks for an operator it means that operator worked today
My measure:
Count(Distinct {<[Numero de Tareas]-={'0'}, [Día]={'$(vUltimoDia)'}>} Persona)
vUltimoDia is today which i made by max(Día)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@h2bi perhaps you need = sign like below?
Count(Distinct {<[Numero de Tareas]-={'0'}, [Día]={"$(=vUltimoDia)"}>} Persona)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
seems your set analysis is looks fine,may be you can check format of vUltimoDia variable and Dia field values.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It might not be applicable here but I have had issues with the -= operator in Qlik over the years. If you find nothing else wrong with the set expression try using [Numero de Tareas]={'<>0'} instead..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@h2bi perhaps you need = sign like below?
Count(Distinct {<[Numero de Tareas]-={'0'}, [Día]={"$(=vUltimoDia)"}>} Persona)
