Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum = (X1 + X2 + ... + Xn), (X1 * X2 * ... * Xn) = ?

Hello.

I'm trying to find the way to calculate the column multiplication

As I understand I need a function such as Sum but It shuld multiply operands instead of sum them.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can do it like

= Exp(Sum(Log( F1 )))

F1 being your field name

View solution in original post

14 Replies
sujeetsingh
Master III
Master III

Alek ,

It seems that you want the iteratin here .

Can you give the sample of your doc.

Not applicable
Author

Hi Aleksander

you can use sum(X1 * X2 * Xn) 

the expression will perform first (X1 * X2 * Xn)  then sum the result along the dimensions

best regards

Chris

Not applicable
Author

Here is an example: I have a dataset: 1, 2, 4, 5 and I should get 1 * 2 * 4 * 5 = 40

Capture.PNG.png

Not applicable
Author

what do you mean by "multiply operands instead of sum them."

Can you please send us a sample file or sample data.

Thanks,

Angad

tresesco
MVP
MVP

I have found a work around:

=$(=Concat(F1,'*'))

PFA

Not applicable
Author

Hi

Please Try "fact(Max(F1))"

Kind Regards,

Footsie

Not applicable
Author

coool tresesco Loved the work around

Not applicable
Author

It's not working on "BIG" data

error.PNG.png

swuehl
MVP
MVP

You can do it like

= Exp(Sum(Log( F1 )))

F1 being your field name