Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
juan_escobar
Contributor

Difference using Sum()

Hello,

I was wondering if there's any difference between Sum(Price * Quantity) and Sum(Price) * Sum(Quantity). If there is any difference, when should I use each?

Thanks!

Tags (1)
2 Replies
Not applicable

Re: Difference using Sum()

The first is sumproduct in my oppinion. So it adds the multipled results.

MVP
MVP

Re: Difference using Sum()

Try this:

LOAD * INLINE [

Price, Quantity

1, -1

2, 0

3, 1

];

Do you see a difference? Why?

Community Browser