Skip to main content
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

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

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

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