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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
zhaohaifeng
Contributor III
Contributor III

Variable for Month

Hello everyone,

please help to explain the case below. Thanks in advance.

For variable V_MAXMONTH,  We define Let V_MAXMONTH=Month(TODAY()) in data load, my confuse was that  we  cant calculte $(V_MAXMONTH) in TEXT box, and also how to use the month variable in set analysis. Thanks in advance.


Best Regards,

Haifeng

1 Solution

Accepted Solutions
agigliotti
MVP
MVP

try as below:

Let V_MAXMONTH = Month(TODAY());


in your textbox use only the variable name without $ expansion.


set analysis example:

sum( {< your_month_field = {"$(V_MAXMONTH)"} >} your_measure )


I hope this helps.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

3 Replies
gianpaolo_31
Contributor III
Contributor III

One workaround is to create the variable in the Variables section in the Edit Sheet.

ChennaiahNallani
Creator III
Creator III

Try like below.

in script

Let vMaxMonth = Month(Today());

Expresion

=vMaxMonth

agigliotti
MVP
MVP

try as below:

Let V_MAXMONTH = Month(TODAY());


in your textbox use only the variable name without $ expansion.


set analysis example:

sum( {< your_month_field = {"$(V_MAXMONTH)"} >} your_measure )


I hope this helps.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it