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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
mxell
Contributor III
Contributor III

Soma retornando valor errado

Bom dia,

Tenho uma tabela e um KPI somando valores. A soma está resultando em valor incorreto.

QLIK

mxell_0-1673443856317.png

mxell_2-1673443897752.png

 

Excel: (valor correto)

 

mxell_1-1673443873115.png

 

O que pode estar ocorrendo?

 

Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

The Qlik engine does not calculate the sum of rows. It calculates the total sum, independent of "Segmento". 

So, if a dollar belongs to more than one segment, it will NOT be counted twice in the total. In your case, you probably have approximately 200,000 $ that belong to more than one segment.

See https://community.qlik.com/t5/Design/Totals-in-Charts/ba-p/1464797 

View solution in original post

3 Replies
Instavini
Contributor III
Contributor III

poderia compartilhar a formula do seu KPI por favor

hic
Former Employee
Former Employee

The Qlik engine does not calculate the sum of rows. It calculates the total sum, independent of "Segmento". 

So, if a dollar belongs to more than one segment, it will NOT be counted twice in the total. In your case, you probably have approximately 200,000 $ that belong to more than one segment.

See https://community.qlik.com/t5/Design/Totals-in-Charts/ba-p/1464797 

mxell
Contributor III
Contributor III
Author

sum([vl-merc-liq]+[vl-icmsub-it]+[vl-ipi-it])
+
sum([vl-frete]+[vl-seguro]+[vl-embalagem])
+
sum(icmsst)