Hi,
I am designing a workflow that requires dynamic date-based filtering and calculations. Specifically, the user will select a date, and the workflow will filter data to include only entries that are less than or equal to the selected date. It will then perform calculations based on this filtered data (This is the bit i am struggling with) which include:
- Calculating values for the quarter immediately preceding the selected date. eg. date = 202310; quarter for this date=4; quarter needed=3.
- Calculating values for the two quarters immediately preceding the selected date. eg. date = 202310; quarter for this date=4; quarters needed=3 and 2.
Given that the selected date will change each month, I need to ensure these calculations are dynamic. Could you provide guidance on how to implement this workflow, including any tips or best practices for managing the dynamic date filtering and calculations?