Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum function - even there I have a issue - pls help a dummy

Dear community,

I have some issues that a chart shows me a unexpected result of a sum(x)/sum(y).

Can a bloody rooky ask a to easy question?

QV issue.jpg

I load two tables:

QV - load 1.jpgQV - load 2.jpg

and use

Sum(Sales)/Sum(MarketPotential)

as function to get a gauge chart

QV-Out.jpg


Can you pls help me?

11 Replies
tresesco
MVP
MVP

Try with distinct keyword for first table like:

=Sum(Sales)/Sum(distinct MarketPotential) 

for Region selection it works. However this is a solution which would not always work, hence not recommended too.

alfredlee
Contributor III
Contributor III

Can you try to Load the 1st table in full but the 2nd table without the Region?

The Region-Country relationship is already defined in the 1st table, and you do not need to load that in the 2nd again.