How to get data from current period -1 of current period

Luis98
Occasional Contributor

How to get data from current period -1 of current period

Hello, 

 

I need to get data from Aug 21 to Sept 21, but i dont want to use "Previous month", if not something like "current month -1", it´s possible?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ankit_cheeni
Super Contributor

Hi @Luis98 

 

Previous is the best way to go about it if you consider engine load on Anaplan but you can also use LAG or OFFSET. The least efficient would be to do a Month-1 and then lookup basis that. 

There is a beautiful thread comparing these 4 functionalities which you can find here: https://community.anaplan.com/t5/Anaplan-Platform/Performance-Comparison-OFFSET-LAG-PREVIOUS-LOOKUP/... 

 

Let me know if this is helpful 🙂

View solution in original post

4 REPLIES 4
ankit_cheeni
Super Contributor

Hi @Luis98 

 

Previous is the best way to go about it if you consider engine load on Anaplan but you can also use LAG or OFFSET. The least efficient would be to do a Month-1 and then lookup basis that. 

There is a beautiful thread comparing these 4 functionalities which you can find here: https://community.anaplan.com/t5/Anaplan-Platform/Performance-Comparison-OFFSET-LAG-PREVIOUS-LOOKUP/... 

 

Let me know if this is helpful 🙂

Luis98
Occasional Contributor

 

@ankit_cheeni  You are a genius, thank you very much!!! I have another question, if i want to pull the average of the previous 3 months, how can i do it?  Regards!!
 
 
 
 
 
 
 
ankit_cheeni
Super Contributor

Hi Luis,
Misbah has given the best solution to this question on your other thread and when Misbah says something, Anaplan usually obliges 🙂
Misbah
Moderator

@ankit_cheeni  haha!