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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If conditions

Hi All,

I have a table as below.

 

NameTypeAmountGain%
AAAAddress1 b
BBBaddress2
CAAaddress3

I need to write a condition for Gain % in a Straight Table (Expression).

pls find the excel condition given below. I need to write the below expression in Qlikview.

b = IF ( OR(address1= "", sum(address1:address3)=0),"", (address1*100)/(address1:address3)

Can anyone help me with this ?

Thanks,

Praveen

13 Replies
Not applicable
Author

I dont have a column called Total amount.

I need to sum all the amounts.

jpenuliar
Partner - Specialist III
Partner - Specialist III

Total in this case is a Reserved word atatched to Sum() function. without it, the resulting values are per rows

jpenuliar
Partner - Specialist III
Partner - Specialist III

from Qlikview F1( help)

If the word total occurs before an expression, the calculation will be made over all possible values given the current selections, but disregarding the chart dimensions.

jpenuliar
Partner - Specialist III
Partner - Specialist III

if you try it now on qlikview, notice that "Total" is in blue color which means it is a reserved word