Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

hkg_qlik
Contributor III

Multiplier Front End (Previous/Current) field

Hi 

How can we create a new Field on UI without making any changes on back end script. Month and Value 1 are available. Now user wants to derive Value 2 field as shown below.

Value 2 (Feb) = Jan(Value 1) * Feb(Value 1) = 1.08*1.09 = 1.18

Value 2 (Mar) = Feb(Value 1) * Mar(Value 1) = 1.09*1.04 = 1.13

Value 2 (Apr) = Mar(Value 1) * Apr(Value 1) = 1.04*1.03 = 1.07

MonthValue 1Value 2
Jan1.08 
Feb1.091.18
Mar1.041.13
Apr1.031.07

 

Thanks!

1 Solution

Accepted Solutions

Re: Multiplier Front End (Previous/Current) field

Try this

=Sum(Value1) * Alt(Above(Sum(Value1)), 0)

or

=exp(RangeSum(Above(log(Sum(Value1)), 0, 2)))
2 Replies

Re: Multiplier Front End (Previous/Current) field

Try this

=Sum(Value1) * Alt(Above(Sum(Value1)), 0)

or

=exp(RangeSum(Above(log(Sum(Value1)), 0, 2)))
Highlighted
hkg_qlik
Contributor III

Re: Multiplier Front End (Previous/Current) field

Thanks Sunny !

=Sum(Value1) * Alt(Above(Sum(Value1)), 0)