I have the sales of 10 stores saved in a table for every month; in other words, in table Sales1601 there are the sales that the 10 stores made in January '16, in table Sales1602 there are the sales that the 10 stores made in February '16, in table Sales1501 there are the sales that the 10 stores made in January '15 exc.
I'd like to have a script that's able to read the current month(Ex: March) and load all the data referring to the previous months (February and January), for the current year and also for the previous year.
Can you explain what you're trying to do? Do you want to load source data into the qlikview document? Or have you already loaded the data in the qlikview document and are you asking about creating an expression for a chart?
Can you post a small qlikview document that demonstrates the problem?