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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis utilizando Len(CAMPO)=0

Prezados, estou tentando utilizar a função LEN dentro de um script. Poderiam me ajudar a identificar onde estou errando ?

=Count({$<  DT_MES_PGTO, DT_ANO_PGTO, Len(DT_MES_DEMISSAO)= {'0'}  >}DISTINCT([MATRÍCULA]))


Grande abraço!

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Consegui desta forma:

=Count( DISTINCT {$<
DT_MES_PGTO, DT_ANO_PGTO, CATEGORIA-= {"A", "P", "E"}
>}
IF(
Len(DT_DEMISSAO)<>0,     

(
[MATRÍCULA])
)
)

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Try this:

=Count({$<DT_MES_PGTO, DT_ANO_PGTO, DT_MES_DEMISSAO = {"=Len(Trim(DT_MES_DEMISSAO)) = 0"}>} DISTINCT [MATRÍCULA])

Anonymous
Not applicable
Author

Obrigado, mas não funcionou.

Anonymous
Not applicable
Author

Consegui desta forma:

=Count( DISTINCT {$<
DT_MES_PGTO, DT_ANO_PGTO, CATEGORIA-= {"A", "P", "E"}
>}
IF(
Len(DT_DEMISSAO)<>0,     

(
[MATRÍCULA])
)
)