Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
PepeMontes
Partner - Contributor III
Partner - Contributor III

Set analysis 3 last months ItemQuantitySales

Hi All dear experts,
I'm trying to analysis the quantity sold  of many items of the last 3 months form the current month with the next set analysis function but it's not getting any field:
=Sum ( { $ < Month = {$(=Max(Month)-1)} > } [ItemQuantity])
I would appreciate a lot if someone could help with this trouble, also i attached an example that show how supposed to look like.

ItemCodeItemDescriptionJanuary ItemQuantityFrebruary ItemQuantityMarch ItemQuantity
1Keyboard1067062
2Mouse282439
3Headset9610284
4MotherBoard4107
5HDD229130143


King Regards.

JAMM.

1 Solution

Accepted Solutions
sunny_talwar

How about this?

=Sum({$< Month = {$(=Month(Date#(Max(Month)-1, 'M')))}>} [ItemQuantity])

 

View solution in original post

4 Replies
sunny_talwar

How does your Month field look like... is it formatted as Jan, Feb, Mar... or does it look like 1, 2, 3?

PepeMontes
Partner - Contributor III
Partner - Contributor III
Author

Hello Sunny,
As Jan, Feb, Mar.

Regards.

sunny_talwar

How about this?

=Sum({$< Month = {$(=Month(Date#(Max(Month)-1, 'M')))}>} [ItemQuantity])

 

PepeMontes
Partner - Contributor III
Partner - Contributor III
Author

it works, much appreciated thanks for your help and time.

Regards.