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: 
Rajsd
Contributor II
Contributor II

NPV (Net percentage value)

Hi,

    How can we convert the following function from Excel to qliksense.

=NPV(0.1, value1, value2 , value3)

If i do sum of value1,Value2,value3 in qliksense,its not giving right values! 

Kindly help

Labels (2)
1 Solution

Accepted Solutions
Ksrinivasan
Specialist
Specialist

hi,

find the screen:

measures is : Val1/1.12+Val2/(Pow(1.12,2))+Val3/(Pow(1.12,3))+Val4/(Pow(1.12,4))

Ksrinivasan_0-1612506618584.png

ksrinivasan

 

View solution in original post

15 Replies
Rajsd
Contributor II
Contributor II
Author

Hi @Ksrinivasan  i had seen this link before but unable to understand this and implement! Could you please elaborate

Ksrinivasan
Specialist
Specialist

hi,

seeing this link

https://www.youtube.com/watch?v=YZkmvzChQr0

 

ksrinivasan

Rajsd
Contributor II
Contributor II
Author

Hi @Ksrinivasan  i have gone through all these videos and links but i am not getting the exact answers in the set expression! Anyways thanks for your support

Ksrinivasan
Specialist
Specialist

hi,

your table should be like this

Product  |  Rate

A | 100

B|150

C|300

your =NPV(0.1, value1: A=100, value2:B=150 , value3: C=300)

discount=0.1

formula is

NPV (0.1,Rate)

ksrinivasan

 

Rajsd
Contributor II
Contributor II
Author

No my table is like this,

Contract id, period1, period 2, period 3

1120, 100,200,300

This is one row for one contract id that is 1120 with discount of 10 percentage.

If its one column then i would have used ur formula and got right answer but here it is multiple columns 

Ksrinivasan
Specialist
Specialist

hi,

you can bring the values in single field as below by using cross table function, then use NPV(.1,Period)

ID | Period

1120 | 100

1120 | 200

1120 | 300

ksrinivasan

 

Rajsd
Contributor II
Contributor II
Author

@Ksrinivasan  I have 100 fields for value1,value2.... I can't alter the load script.