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
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/td-p/51140
Let me know if this is helpful 🙂
@ankit_cheeni haha!
Assuming you have a date column named date_column in your database table, you can construct a query like this to retrieve b2b data enrichment from August 21st to September 21st of the previous month:
date_column
SELECT * FROM your_table WHERE DATE_SUB(CURDATE(), INTERVAL 1 MONTH) >= DATE_FORMAT(date_column, '%Y-%m-21') AND CURDATE() < DATE_FORMAT(date_column, '%Y-%m-21');
In this query:
CURDATE()
DATE_SUB(CURDATE(), INTERVAL 1 MONTH)
DATE_FORMAT(date_column, '%Y-%m-21')
The WHERE clause checks if the date in date_column falls between the first day of the previous month (inclusive) and the first day of the current month (exclusive), effectively giving you data from August 21st to September 21st of the previous month.
WHERE
You can adjust the your_table and date_column placeholders in the query to match your specific table and column names.
your_table
Hi, I have a worksheet for end users to enter new hires into, for which the list item which persist across versions. I am having an issue where the end user can delete a list item using the grid functionality because the Current Version value is blank, but I want to prevent them deleting them (as data will be lost from…
Hey everyone, I wanted to share the Anaplan Python SDK with you. It's a Python Library that wraps all Anaplan APIs and makes it easier to interact with Anaplan programmatically. It is mostly designed with Data Integration Scenarios in mind, but it does support all APIs including ALM, SCIM, Audit, and Cloud Works. Please…
Hello, I am receiving an 'Anaplan Upload Failed' Status Description when testing my integration with a Big Query dataset. The integration imports data from BQ to our Anaplan model. No other details given in the error log. I suspect that Cloudworks is not even picking up the file but am not sure what we did wrong on the set…