Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ester_pr
Partner - Creator
Partner - Creator

name set to until month

Hi,

I need help for creating name set to until mount, I an traing to write the sum of sales until the selected mount with no success

My set is

=

sum({$<YEAR={2011},month={$(=only(month))}>} ,SALES

I need to make it month <= only(month)

2 Replies
ester_pr
Partner - Creator
Partner - Creator
Author

somehow when i write

sum({$<YEAR={only(year-1})}>} ,SALES

it's ok but

sum({$<month={only(month-1})}>} ,SALES

it returns 0, wite the -1 only, way?

rajeshvaswani77
Specialist III
Specialist III

Hi Ester,

       Please use AddMonths(date,-1) and extract the month from it.

Thanks,

Rajesh Vaswani