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: 
maksim_senin
Partner - Creator III
Partner - Creator III

Range multiplication

Hi,

...starting to give up.

Does anybody know whether QV allows to multiply numbers of a set? Like Excel does it via PRODUCT() function.

There is SUM() function which summarizes numbers of a given set, but I would like to multiply them in order to calculate coefficient of inflation for a period. So I need to do it in a chart, not in the script since user can select arbitrary period.

Thanking you in advance.

Best regards,

Maxim

Labels (1)
1 Solution

Accepted Solutions
deepakk
Partner - Specialist III
Partner - Specialist III

hi Maxim,

I hope the attach application helps you out.

Deepak

View solution in original post

5 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi Maxim,

I hope the attach application helps you out.

Deepak

maksim_senin
Partner - Creator III
Partner - Creator III
Author

Hi Deepak,

Looks good! Since ln(a*c) = ln(a) + ln(c), we really can find a*b via exp of sum of ln(a) and ln(b)!

Thanks.

Best regards,
Maxim

alexdataiq
Partner - Creator III
Partner - Creator III

That's is a very nice use of Math!

The formula used is:

=Exp(Sum(Log(Amount)))


Regards!

kristeljoymalapitan
Creator
Creator

Hi  Deepakk,

May i see the your example on attached qvw file. I have no qlik view and unable to open the file

 

Thanks

gnmq
Contributor III
Contributor III

Hello, Can I check how do I get the calculation by month and product?

 

Example:

Date, Product, Amount

2020-01-01, ProductA, 0.2

.

.

2020-01-31, ProductA, 0.5

The calculated field will be 0.2 * .... * 0.5 

I will also have other month and product in the example above.