Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
andymanu
Creator II
Creator II

Multiply two fields in a table and display the result on to a new column

Hi,

I am currently studying the Qlik Sense scripting and would like to know a suitable syntax for the below mentioned question.

I want to multiply two fields of a table ( Ex - Unit price vs Quantity) and display the result on to a newly created table field named Sales.

I would prefer using variables and appreciate if someone could help me with the above said question.

Thanks a lot in advance.

Regards,

Manu

1 Solution

Accepted Solutions
shivanandk
Partner - Creator II
Partner - Creator II

to your script add a calculated field

Load

UnitPrice,

Quantity,

UnitPrice*Quantity as Sales

from tablename

View solution in original post

4 Replies
shivanandk
Partner - Creator II
Partner - Creator II

to your script add a calculated field

Load

UnitPrice,

Quantity,

UnitPrice*Quantity as Sales

from tablename

zebhashmi
Specialist
Specialist

Use a residence Load of your table and

UnitPrice*Quantity as a new field



andymanu
Creator II
Creator II
Author

Thank you

andymanu
Creator II
Creator II
Author

Thank you