Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
mauroosorio
Contributor
Contributor

condicional <> o >

tengo problemas con esta expresion

sum (count({<estado_empleado = {'Activo', codigo_empresa <> {'1'} >} ),'#.##0')

como puedo manejar el condicional <> sin que me genere error

error in set modifier ad hoc element list

4 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

1. It looks like you are missing a closing bracket after 'Activo'.

2. Also, numeric values can't be compared like this. Instead, move the comparison into the search:

3. What's the field that you are counting ?

4. The formatting string belongs to the function num, but there is no num() here?

5. You can't use SUM() and COUNT() together without using AGGR() between them.

Here is what's left:

count({<estado_empleado = {'Activo'}, codigo_empresa = {"<>1"} >} MISSING_FIELD)


cheers,


Oleg Troyansky

www.masterssummit.com - take your QlikView skills to the next level!

anbu1984
Master III
Master III

count({<estado_empleado = {'Activo'}, codigo_empresa -= {"1"} >} MISSING_FIELD)


mauroosorio
Contributor
Contributor
Author

muchas gracias ,  esa era la solucion que necesitaba

anbu1984
Master III
Master III

If your queries are answered, please close the post by selecting correct answer.