Sum of deals won in an account within a Financial Year

Sum of deals won in an account within a Financial Year

Hi,

I've seen various code snippets for people doing this for the invoice module (which we don't use) but I want to create fields in an account for Current FY Spend and a separate one for Previous FY Spend, or any specific dates that can be preset or dynamic - within 12 months from initial deal closing for example. 

I know there is a rollup summary field available but it doesn't seem to let me specify a date range in this field, unless I'm missing something!

Would someone be able to create this code snippet for me? I would call the Fields on the account Current FY Spend and Previous FY Spend (as above) if that's needed.

Thanks
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方