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: 
kavita25
Partner - Specialist
Partner - Specialist

How to use if condition in text box.

How to use the below expression in Text box:


avg(if((ValidFrom<=[GR Date] and [GR Date] <=rangedate),(OLDRATE-NEWRATE)))


Any help, would highly appreciate.


Regards,

Kavita



1 Solution

Accepted Solutions
consenit
Partner - Creator II
Partner - Creator II

Hi there.

When used In textboxes expressions must include the equal sign at the start:

=avg(if((ValidFrom<=[GR Date] and [GR Date] <=rangedate),(OLDRATE-NEWRATE)))

Kind regards,

Ernesto.

View solution in original post

1 Reply
consenit
Partner - Creator II
Partner - Creator II

Hi there.

When used In textboxes expressions must include the equal sign at the start:

=avg(if((ValidFrom<=[GR Date] and [GR Date] <=rangedate),(OLDRATE-NEWRATE)))

Kind regards,

Ernesto.