Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How To add a field based on a Distinct from another field? (Como Somar um campo baseado em um Distinct de outro campo?)

staff

     I'm trying to create an expression within a PivotTable to undertake the sum of a particular field (value) since this sum should happen only for each CNPJ DISTINGUISHED, or need to add the Value field giving a Distinct CNPJ field. Would someone help me with this issue?

Grateful.

Translated with Google Translate - Qlik Community Administrative Team

Pessoal,

    Estou tentando criar uma Expressão dentro de uma Tabela Dinâmica que realize a soma de um determinado campo (Valor), visto que esta soma deve acontecer apenas para cada CNPJ DISTINTO, ou seja, preciso somar o campo Valor dando um Distinct no campo CNPJ. Será que alguém poderia me ajudar com esta questão?

Grato.

2 Replies
ramoncova06
Specialist III
Specialist III

you can do this by using set analysis

Set Analysis: syntaxes, examples

robert_mika
Master III
Master III

Use CNP as Dimensionand then try:

sum(DISTINCT Values)