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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
kubafox
Contributor
Contributor

Problem with calculating the order volume

hi,

I have two tables.

The first one contains order numbers, product codes and quantities of these products. The second contains the properties of the products: weight and volume.

then adds product properties to the table with orders using "left join".

It looks like this:

left Join(orders)
LOAD
"product_id",
volume as Vol,
weight as Wei
FROM [.....qvd]
(qvd);

left Join (orders)
Load
*,
Vol*qty as vol_m3,
Wei*qty as Wei_kg
Resident orders;

 Then I create the measure:

sum(Aggr(sum(vol_m3),order_number,vol_m3,[product_id]))

the result on some lines is incorrect.:

kubafox_1-1644864441768.png

 

does anyone have an idea what am i doing wrong?

0 Replies