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

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

How to write this formula?

I have an expression which is:

(LGD*NORMSDIST((1-KORRELASJON)^-0.5 *NORMSINV(PD)+(KORRELASJON/(1-KORRELASJON)^0.5)*NORMSINV(SOLVENSNIVÅ))-PD*LGD)*AVKASTN

in excel.

Where

KORRELASJON = constant/variabel

SOLVENSNIVÅ = constant/variabel

AVKASTN = constant/variabel.

the same with LGD and PD

How do I put this onto one expression in Qlikview?

9 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi Kite,

if posible please attach the sample data file.

and also mention what you want to do actualy.

Reagards,

Nilesh Gangurde

Not applicable
Author

Hi,

I don't have the opportunity to include a sample file at this point, but I would like to know how to put the ^ expression in qlikview as a starter.

Not applicable
Author

^0.5 is the square root of the value. Use the sqrt function, e.g. sqrt(1-KORRELASJON)

Not applicable
Author

But is there any function that replicates the normsdist in excel?

Not applicable
Author

QlikView also support the normdist function. You can use the help function in QlikView for some examples:

normdist (value, mean, standard_dev)

returns the cumulative normal distribution for the specified mean and standard deviation. Value is the value at which you want to evaluate the distribution. Mean is a value stating the arithmetic mean for the distribution. Standard_dev is a positive value stating the standard deviation of the distribution. All arguments must be numeric, else null will be returned. If mean = 0 and standard_dev = 1, the function returns the standard normal distribution. This function is related to the norminv (prob, mean, standard_dev) function in the following way:

If prob = normdist(value, m, sd), then norminv(prob, m, sd) = value.

Example:

normdist( 0.5, 0, 1 ) returns 0.6914625 

Not applicable
Author

In excel there is two different formulas

Normdist

and

Normsdist

I am looking for the function replicating the latter.

Not applicable
Author

I can use the normdist, but I just wanted to know if there was a direct formula.

Anonymous
Not applicable
Author

If this is still of value, pow(x,y) returns x to the power y.

Anonymous
Not applicable
Author

I don't believe there is.

You'll have to build it manually.

Normsdist formula would be (from Office help):

Equation

vNormsdist = (1/sqrt(2*pi())) * pow(e(), -$1*(1/2))

When you will call on this variable, make sure to use the dollar sign expansion, i.e. $(vNormsdist(z)) where z is your parameter. hope it helps