Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
eric1santos
Contributor III
Contributor III

Dúvidas sobre Distinct na expressão

Boa noite!

Eu estou com um problema na minha expressão, onde não consigo tirar os valores dúplicados porque falta o campo:

Distinct(número dos casos)

A função é a seguinte:

interval(sum({<Status={'Closed'},[Classificação_Chamado]={'EM - EM Call'}>}num([TEMPOSOLUÇÃO_SLA_REALIZADO],'#, ### ##'))

Como eu posso colocar a função: Distinct(número dos casos) na fórmula acima?

OBS.: O Campo TEMPOSOLUÇÃO_SLA_REALIZADO esta em horas e por isso eu uso a função Sum, para saber as horas totais mas não consigo distinguir as horas dos números dos casos para não duplicar.

 

 

Labels (4)
1 Solution

Accepted Solutions
eric1santos
Contributor III
Contributor III
Author

I managed to solve this is expression:

interval(sum(Aggr(max({<Status={'Closed'},[Classificação_Chamado]={'EM - EM Call'}>}

num([TEMPOSOLUÇÃO_SLA_REALIZADO],'#, ### ##')),[Número do caso]))

/count({<Status={'Closed'},[Classificação_Chamado]={'EM - EM Call'}>}distinct([Número do caso])),'hh:mm:ss')

Obrigado pela ajuda

🙂

TKS

 

View solution in original post

7 Replies
Channa
Specialist III
Specialist III

count({<Status = {'Closed'}, [CallStates] = {'EM - EM Call'}>} distinct  [TEMPLATE_SELECTED])

Channa
eric1santos
Contributor III
Contributor III
Author

Eu preciso de toda esta expressão:
interval(sum({<Status={'Closed'},[Classificação_Chamado]={'EM - EM Call'}>}num([TEMPOSOLUÇÃO_SLA_REALIZADO],'#, ### ##'))

Colocando também: Distinct(número dos Casos)

Como eu posso colocar também o Distinct(número dos casos)?
Channa
Specialist III
Specialist III

share qvf with sample data

 

you want to count distinct (TEMPOSOLUÇÃO_SLA_REALIZADO) ?

Channa
eric1santos
Contributor III
Contributor III
Author

I need to take the number of duplicate cases.

I need to insert this into the expression:

distinct(number of cases)

 

I can not fiddle in the expression, just add.

 

 

Channa
Specialist III
Specialist III

can you share qvf

Channa
eric1santos
Contributor III
Contributor III
Author

I can not share because it's on the server.

I'm doing the average in the months, but for this I need the expression to take the duplicate case numbers with the Distinct

Capturar.PNGCapturar.PNG

eric1santos
Contributor III
Contributor III
Author

I managed to solve this is expression:

interval(sum(Aggr(max({<Status={'Closed'},[Classificação_Chamado]={'EM - EM Call'}>}

num([TEMPOSOLUÇÃO_SLA_REALIZADO],'#, ### ##')),[Número do caso]))

/count({<Status={'Closed'},[Classificação_Chamado]={'EM - EM Call'}>}distinct([Número do caso])),'hh:mm:ss')

Obrigado pela ajuda

🙂

TKS