Automation issue

Options

I have a sheet that has a number of metrics for which I request and report data for on a number of different cadences i.e. monthly, quarterly etc. across the entire year.

I have the following fields in the sheet: Metric name, Data Reporting Frequency (which can be Monthly, Quarterly etc.), Reporting Date (this is the date for which I want the metric data for), Name of Month (this take the name of the month of the "Reporting Date" field), Pass Date (helper field used in the automation) and Next Update.

What I'm trying to achieve is this : when a month ends for example June 2024, I want the automation to send out an email request on the first day of July requesting for the previous months data (i.e. June), the same for the prior months i.e when May ends, I want the automation to send out an email request on the first day of June (which is the next month) requesting for the previous months data (i.e. May).

I think I have been able to setup the automation however when May ended and the automation was triggered rather than requesting for May data it requested for April data. The same thing happened in April where rather requesting for April data in May it requested for March data. Below is a screenshot of the sheet and the automation. The "Pass Date" field checks to see if the current date is greater than the "Date" field. If yes then when the automation is triggered it should request for data for the date in the "Date" field. In the table below the automation should ask for data for May, however it asked for data for April. Thanks in advance.

Screenshot 2024-06-19 at 8.52.11 PM.png Screenshot 2024-06-19 at 8.17.29 PM.png Screenshot 2024-06-19 at 8.40.38 PM.png

Best Answer

  • iLoveData
    iLoveData ✭✭✭✭
    Answer ✓

    @Bannoradjaye

    Hello,

    I would set change the Name of Month column to Month # and have the formula be = MONTH([Name of Month]@row) to return the month value then set up another column Month -1 = MONTH(TODAY()) -1 then Change the Pass date from a checkbox to a formula being = IF([Name of Month]@row = [Month -1]@row, "Previous Month", "N/A")

    This would allow you to dynamically determine if the month is 1 month previous to the start of the automation. I'd do this because the automation begins on the first of the new month you want it to dynamically filter out all months that came before by labelling them "N/A".

    I hope this helps!

    Michael - Alternative Delivery Analyst

    Ames Construction

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!