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: 
mohdhaniff
Creator
Creator

How To Convert Excel Formula into QlikView

I am creating below formula in Excel (refer to Net Calculator):

AmountRateDurationChargesRate ChargeNet
584003.50%108183963.56.344015796

Can anybody assisi me on how to convert 'Net' Field into QlikView formula?

My SQL as below:

data:
LOAD * Inline [
Amount,Rate,Duration
58400,3.50%,108
]
;


Count:
NoConcatenate
LOAD *,
Amount*Rate*(Duration/12) as Charges
Resident data;
Left Join (Count)
LOAD *,
(
Charges/Amount)/(Duration/12)*100 as [Rate Charge] Resident Count;
LOAD *,
SUM(2*(Duration*[Rate Charge])*(300*12+Duration*[Rate Charge]))/((2*(Duration)^ 2 * [Rate Charge])+(300 * 12 * (Duration + 1))) as Net;


DROP Tables data;

Thanks

1 Solution

Accepted Solutions
Digvijay_Singh

Try this, don't understand the use of sum, at least this gives the result for the sample, -

Data:

Load *,

  2*(Duration*[Rate Charge])*(300*12+Duration*[Rate Charge])/((2*(Duration*Duration)*[Rate Charge])+(300*12*(Duration+1))) as Net;

LOAD *,

(Charges/Amount)/(Duration/12)*100 as [Rate Charge];

LOAD *,

  Amount*Rate*(Duration/12) as Charges;

LOAD * Inline [

Amount,Rate,Duration

58400,3.50%,108

];

View solution in original post

3 Replies
Digvijay_Singh

Try this, don't understand the use of sum, at least this gives the result for the sample, -

Data:

Load *,

  2*(Duration*[Rate Charge])*(300*12+Duration*[Rate Charge])/((2*(Duration*Duration)*[Rate Charge])+(300*12*(Duration+1))) as Net;

LOAD *,

(Charges/Amount)/(Duration/12)*100 as [Rate Charge];

LOAD *,

  Amount*Rate*(Duration/12) as Charges;

LOAD * Inline [

Amount,Rate,Duration

58400,3.50%,108

];

mohdhaniff
Creator
Creator
Author

Hi Digvijay Singh

Actually I got the formula from my senior and also wondering what is purpose of SUM in the excel. I already try to convert the formula since past 3 weeks.

Anyway, thank you.

Digvijay_Singh

Glad it worked for you