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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
mithunr40
Contributor III
Contributor III

To increase the bill amount by %

To increase the bill amount by % if last pay date < current date

 for next 7 days                 12.5%

 for next 10 days               15%

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

I would probably do this in the script, but it is possible to use it front end inside an expression as well

 

If(today()-LastPayDate >=10, //identify 10d or more

   BillAmount * 1.15,

   If(today()-LastPayDate >=7, //identify 7-10 days

      BillAmount * 1.125,

      BillAmount * 1.00 ) AS NewBillAmount

 

 

View solution in original post

1 Reply
Vegar
MVP
MVP

I would probably do this in the script, but it is possible to use it front end inside an expression as well

 

If(today()-LastPayDate >=10, //identify 10d or more

   BillAmount * 1.15,

   If(today()-LastPayDate >=7, //identify 7-10 days

      BillAmount * 1.125,

      BillAmount * 1.00 ) AS NewBillAmount