Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

define a variable containing from January to current month

hi,guys!

I need some help with qlikview.

I want to define a variable aggregating the months from January to current month.

how should I write the expression

thanks

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

You need to be more specific. A variable cannot contain multiple values (January to current month).

If you want a set expression that spans the month range, then depending on your data model you could use a set expression something like:

     {<Month = {">=$(=Month(YearStart(Today()))) <=$(=Month(Today()))"}>}

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

You need to be more specific. A variable cannot contain multiple values (January to current month).

If you want a set expression that spans the month range, then depending on your data model you could use a set expression something like:

     {<Month = {">=$(=Month(YearStart(Today()))) <=$(=Month(Today()))"}>}

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks a lot!