Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
eddykwan_
Partner - Contributor III
Partner - Contributor III

How to make Formula in Variable

Hi Everyone 

I want to ask about how to make Formula [Product Price] * [Product Sold] in variable 

 

eddykwan__0-1682475753375.png

eddykwan__1-1682475778254.png

eddykwan__2-1682475798600.png

I make a Variable product price and Product Sold after that i make formula in Variable Revenue, and i got a value is 0 and null 

Thank you 

3 Replies
anat
Master
Master

Why can't you try in backed script

Prem0212
Creator
Creator

Here i am giving an example. You have to use the variables in the expression like yellow marked in below image below. use the variable like  $(Variable that has defined by you)

Prem0212_0-1682489588329.png

Please accept the solution if u liked it.

 

 

Rams-
Creator
Creator

Hi,

I would suggest you to use this expression:

Sum([Product Price]) * Sum([Product Sold]) an create Variable

Rams_1-1682501039267.png

Here's the output fro your data:

Rams_2-1682501124482.png

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!