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

Calculation of field of a group at script level!

Hi

Following calculation in done for one of the field in group in front end. As the performance I would like to do that in the script level. Could you please help me out how to do the same?



=date(trim(if(date >= '$(vMinDate)' and date < '$(vMaxDate)',date)),'DD/MM/YYYY')


1 Reply
Miguel_Angel_Baeyens

Hello,

I assume that you want to format a field in case of this date fills the condition, but otherwise?

I assume as well that those variables exist in the script, if that's the case, the same eyntax you used above my be used as a new field

date(trim(if(date >= '$(vMinDate)' and date < '$(vMaxDate)',date)),'DD/MM/YYYY') AS FormattedDateField


Hope that helps.