Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
aleksas_baltpool
Contributor II
Contributor II

Display previous month data

Hi,

I'd like to have a column that shows data from a previous month. Tried doing this with set analysis however with no luck.

Script regarding this table looks like that:

aleksas_baltpool_0-1594818963077.png

I'm using hau_month as a dimension in the chart. I'd like to display sum(hau_total_amount) for the current and for the previous month. 

 

Tried something like that: sum({<hau_month={$(=Max(hau_month)-1)}>}hau_total_amount)

 

However the result is zeroes. Hope you can help me with it !

12 Replies
aleksas_baltpool
Contributor II
Contributor II
Author

Is it possible to get data from two months ago using some kind of formula like that?

tresesco
MVP
MVP

Above(sum(hau_total_amount), 2)

aleksas_baltpool
Contributor II
Contributor II
Author

Great, thanks!