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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianevpm
Contributor III
Contributor III

Date Set Analysis

Bom dia Pessoal,

Estou iniciando no set analysis como faço pra incluir essa expressão no indicador pegando os dados conforme as seleções ?

If dt_ent_saldo<max(dt_entrada) and (dt_bx_saldo>max(dt_entrada) or isnull(dt_bx_saldo)),count(id))

Grata,

Labels (2)
12 Replies
Thiago_Justen_
MVP
MVP

Cristiane,

Tente o seguinte:

Count({<dt_ent_saldo={"<$(=Max(dt_entrada))"},dt_bx_saldo={">$(=Max(dt_entrada))"}>+<dt_bx_saldo-={"*"}>}id)

Abs e Sucesso!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
AndreFrencl
Contributor III
Contributor III

Oi, Cristiane.

Tenta essa expressão no set analysis:

count( {< Units_01={'<$(=max(Units_03))'} >} if(Units_02>aggr(max(Units_03),FCC) or isnull(Units_01),FCC,null()))


André

cristianevpm
Contributor III
Contributor III
Author

Pq usou isso <dt_bx_saldo - = { "*"}>} id)

Thiago_Justen_
MVP
MVP

Nesse pedaço quero dizer o seguinte:

Conte tudo menos o que não for nulo.

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_
MVP
MVP

Ou seja, conte o que for nulo

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_
MVP
MVP

Alguma novidade Cristiane?

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
cristianevpm
Contributor III
Contributor III
Author

Oie

Qual o erro dessa expressão?

=Num((Count({<Evoluc_Saldo.DF_DT_SALDO = { '<$ (< Max (Evoluc_Defeitos.DF_DT))'}distinct Evoluc_Saldo.ID_Saldo)+

Count({<Evoluc_Defeitos.DF_DT_BX = { '> $ (> Max (Evoluc_Defeitos.DF_DT))'}>distinct Evoluc_Saldo.ID_Saldo)),

(Count({<Evoluc_Saldo.DF_DT_SALDO = { '<$ (< Max (Evoluc_Defeitos.DF_DT))'}distinct Evoluc_Saldo.ID_Saldo)+

Count({<Evoluc_Defeitos.DF_DT_BX -={'*'}>}distinct Evoluc_Saldo.ID_Saldo)),'###.###.##0')

Thiago_Justen_
MVP
MVP

Não usei o editor pra verificar a questão dos parenteses mas acho que o problema eram as aspas simples e o sinal de < antes da função Max no set analysis.

Num((Count({<Evoluc_Saldo.DF_DT_SALDO = { "<$ (= Max (Evoluc_Defeitos.DF_DT))"}distinct Evoluc_Saldo.ID_Saldo)+

Count({<Evoluc_Defeitos.DF_DT_BX = { "> $ (=Max (Evoluc_Defeitos.DF_DT))"}>distinct Evoluc_Saldo.ID_Saldo)),

(Count({<Evoluc_Saldo.DF_DT_SALDO = { "<$ (= Max (Evoluc_Defeitos.DF_DT))"}distinct Evoluc_Saldo.ID_Saldo)+

Count({<Evoluc_Defeitos.DF_DT_BX -={"*"}>}distinct Evoluc_Saldo.ID_Saldo)),'###.###.##0')

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
cristianevpm
Contributor III
Contributor III
Author

thiago.justen pode me passar seu email ou skype pra contato.

Abç