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
Hello, I have a use case where a user will create a child if they want to make adjustments to an initial value entered at the parent level. The reason the "parent" list may not have children is that not all the list members will have adjustments. The users want to see all L1 items on the same grid as L1 items with L2 items…
We added new bed types to eventually move from the old "All Beds, single, double" I inputted the data into the new bed types Went to double check flow into other modules and found that they are being double counted even though I blanked the original columns out. I am not sure why it is still counting All Beds even if it is…
We are looking for Anaplan end-users to provide feedback on their experiences with the Excel add-in. Interested individuals will respond to this 5-minute survey to help us understand personal needs and behavior when using the add-in. The feedback provided by survey takers is essential to the roadmap of Anaplan's products.…