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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function inside expression

Hi. How can I use function inside a expression?

Works fine

Sum({<data_finalizado={'2015'}>}valor_total)

Is returning error

Sum({<year(data_finalizado)={'2015'}>}valor_total)

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Functions are not allowed within left hand side of set modifier. You can create year field in the script and use that

LOAD Year(data_finalizado) as Year


and then this...

Sum({<Year={'2015'}>}valor_total)

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Functions are not allowed within left hand side of set modifier. You can create year field in the script and use that

LOAD Year(data_finalizado) as Year


and then this...

Sum({<Year={'2015'}>}valor_total)

Not applicable
Author

Nice.

Thank You Sunny.

sunny_talwar
MVP
MVP

If it worked as you wanted, I would suggest you to close the thread by marking the correct response. If you still have doubts then please let us know

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny