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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
danielnevitt
Creator
Creator

Expression help

Hi,

I have the below expression.

(Sum(unpriced_lots)/NetWorkDays(today()+2,final_pricing_dt))*3

I would like to add an IF statement that says IF Diminishing Balance Contract = Y, then

(Sum(unpriced_lots)/NetWorkDays(today()+2,final_pricing_dt))*3 , IF Diminishing Balance Contract = N then Sum(unpriced_lots)

Any help would be appreciated.

Regards,

Daniel

1 Solution

Accepted Solutions
Anonymous
Not applicable

=if([Diminishing Balance]='Y',

     (Sum(unpriced_lots)/NetWorkDays(today()+2,final_pricing_dt))*3,

          Sum(unpriced_lots))

View solution in original post

3 Replies
Anonymous
Not applicable

=if([Diminishing Balance]='Y',

     (Sum(unpriced_lots)/NetWorkDays(today()+2,final_pricing_dt))*3,

          Sum(unpriced_lots))

danielnevitt
Creator
Creator
Author

Thanks for your help

Anonymous
Not applicable

No problem.  Glad you got what you needed.