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: 
markgraham123
Specialist
Specialist

Sum() operation is returning total sum by default

Hi Everyone,

I'm working on an application, where when i select SKU#, it should show the Warehouse in the chart table and individual sum.

In the end, i have to see the total.

But the total sum is getting populated in all the Sum() fields rather than its own individual sum() values.

PLease look into this.

9 Replies
sorrakis01
Specialist
Specialist

Hi,

In expression  write Sum(Aggr(Sum([Qty on Hand]),[ID Warehouse]))

Regards,

markgraham123
Specialist
Specialist
Author

HI,

The expr. is returning zero values.

sorrakis01
Specialist
Specialist

Hi,

See the example.

Regards

markgraham123
Specialist
Specialist
Author

HI,

Please find the app. with updated data..

its not working in the below app.

sorry for inconvenience.

sorrakis01
Specialist
Specialist

Hi Mark,

For understand your problem... your problem exactly is on Total of Simple Chart? now its correctly. In your first example only sums distinct values. And now sum all values.


Maybe the problem it's on your values because you have a Qty 44 on a null dimension.


For understand, where is your problem exactly?


if you prefer you can upload Book1.xls


Thanks

markgraham123
Specialist
Specialist
Author

I want to sum only distinct values but not total values....

sorrakis01
Specialist
Specialist

Hi,

ok and this?

Sum(DISTINCT Aggr(Sum([Qty on Hand]),[ID Warehouse]))

markgraham123
Specialist
Specialist
Author

Hi,

it still shows the total .

awhitfield
Partner - Champion
Partner - Champion

Hi Mark,

Should the dimension be Skort_Warehouse  and expression just sum(qty on hand)

HTH - Andy