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

Calculate in range

Dear all,

First of all thank you for your support. Wish you can help me.

I'm stuck at this trick. I've the next table:

Postin DateInvoice numberArticleUnitsUnit Cost
01/01/202010000RedCar503,50 €
02/01/202010001RedCar103,60 €
03/01/202010002RedCar53,70 €
04/01/202010003RedCar33,80 €
05/01/202010004RedCar13,90 €

 

I need that Qlik calculate the total cost per invoice as the next table:

Postin DateInvoice numberArticleUnitsUnit Cost¿This Total Cost in Qlik Sense?How to?
01/01/202010000RedCar503,50 €175,00 €
02/01/202010001RedCar103,60 €36,00 €
03/01/202010002RedCar53,70 €18,50 €
04/01/202010003RedCar33,80 €11,40 €
05/01/202010004RedCar13,90 €3,90 €

 

This total cost is: 244.80€

What I'm reaching it at the control panel the results obtained at qlik are the next ones:

Postin DateInvoice numberArticleUnitsUnit Cost
01/01/202010000RedCar503,50 €
02/01/202010001RedCar103,60 €
03/01/202010002RedCar53,70 €
04/01/202010003RedCar33,80 €
05/01/202010004RedCar13,90 €
   Average cost3,70 €
   Total(average cost * total units)255,30 €

 

Total cost: 255.30€ comes from an average and not from every invoice.

Do you know how can I calculate per invoice?

Thank you for your support again.

0 Replies