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: 
Anonymous
Not applicable

Month Over Month Sales

I've tried variations of all the formulas I've found on here for month over month, and so far none of it works.  I need to see sales month over month like this, MonthYear, that month's sales, then the previous month's sales in the 3rd column.  Please somebody help me.

17 Replies
zebhashmi
Specialist
Specialist

it should be something like that what is the name of your Date field like if MonthofYear than

Sum({$<MonthofYear = {$(=addmonths(MonthofYear, -1))}>}GROSS_ACTS_REACTS_UPGRADES)



Anonymous
Not applicable
Author

The Date field is called Date. In my formula, I convert MonthYear to a date.

zebhashmi
Specialist
Specialist

So

Sum({$<Date = {$(=addmonths(Date, -1))}>}GROSS_ACTS_REACTS_UPGRADES)


can you share some data or file?


Anonymous
Not applicable
Author

I tried that already and got all zeros. Below quit working, too. I’m sorry, I don’t think there’s a way to share a file. I’m pretty sure I’d be in trouble if I sent over company data. Without any codes, it looks like this:

zebhashmi
Specialist
Specialist

How you are showing Last month in your table> Can you share the F(x)

Anonymous
Not applicable
Author

=Month(AddMonths(MonthEnd(Date(MonthYear)),-1)) & ' ' & Year(AddMonths(MonthEnd(Date(MonthYear)),-1))

zebhashmi
Specialist
Specialist

Not sure but try that if your MonthYear field has a space in it

=Sum({$<MonthYear = {$(=Month(AddMonths(MonthEnd(Date(MonthYear)),-1)) & ' ' & Year(AddMonths(MonthEnd(Date(MonthYear)),-1)))}>}GROSS_ACTS_REACTS_UPGRADES)

Anonymous
Not applicable
Author

No, sorry, still all zeros.