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

compare each month to the same month last year?

Hello,

I have a pretty basic table and I need to compare the turnover of each month vs the same month last year :

- Date

- Day

- Month

- Year

- Turnover

Something like

=Sum(Turnover) /  Sum( {Day=, Month=SameMonthAsTheleftPart,YearMonth=YearFromTheLeftPart - 1>} Turnover)

Is it possible?

I hope you can help.

Many thanks!

3 Replies
Gysbert_Wassenaar

Yes, it's possible. Dozens have solved this issue before: https://community.qlik.com/search.jspa?q=same+month+year


talk is cheap, supply exceeds demand
sunny_talwar

May be look into this option as well: The As-Of Table

or share a sample where we can demonstrate some front end options using Above()/Below() functions.

reddy-s
Master II
Master II

Hi,

Its easier if you use a master calendar. Make use of the inMonth() function to create a flag and make use of this in the set analysis statement.

Thanks,

Sangram.