Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month - Year Issue

Hi, I am trying to count various values which have a date range in the current month and the following month. I have created 2 variables to use in these calcs and all works fine. However as soon as the current month is Dec(2015) the following month Jan(2016) calcs break. It seems to count Jan from all years. I am quite new to this so I need Jan to count only values in 2016. Any ideas?

Variables used :

LET vCurrentMonth = Month(Today());
LET vNextMonth = Month(AddMonths(Date(Today()),1));

2 Replies
sunny_talwar

Try these:

LET vCurrentMonth = MonthName(Today());
LET vNextMonth = MonthName(AddMonths(Today
(), 1));

Not applicable
Author

Hi Sunny,

No results are brought in using MonthName.