Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate sales

I am trying to calculate sales

Unitprice Discount : Discounts are stored on the transaction as a discount percentage.

Rate is exchange rate

sum (Qty* UnitPrice*Rate)-sum(Price*UnitPriceDiscount*OrderQty*Rate/100)

Looks like I am not doing something correct .

Please correct me 🙂

Thanks

1 Solution

Accepted Solutions
pover
Luminary Alumni
Luminary Alumni

I'm confused by all the field names. Why do you have UnitPrice and Price? The formula might be better as:

sum( (UnitPrice * (1 - UnitPriceDiscount/100) * OrderQty * Rate)

Regards.

View solution in original post

2 Replies
pover
Luminary Alumni
Luminary Alumni

I'm confused by all the field names. Why do you have UnitPrice and Price? The formula might be better as:

sum( (UnitPrice * (1 - UnitPriceDiscount/100) * OrderQty * Rate)

Regards.

Not applicable
Author

Thank you Karl