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: 
danimarc12
Partner - Creator
Partner - Creator

Conditional expression with sub

Hello everyone!

I have an issue with an expression. I want to calculate the AVG of field1 - field2 with the condition that field1-field2 < 1.

this is my expression:

avg({<"$(=approvatoData-dataOrdineEora < 1)">}approvatoData-dataOrdineEora)

of course it doesn't work. Can anyone help me to write it correct and the reason of the correct method?

Thank you all!

1 Reply
danimarc12
Partner - Creator
Partner - Creator
Author

PS. approvatoData and dataOrdineEora are two datetime fields