Fiscal Year Calculations and Implementing Filter Reduce Pattern

The State Changers meeting focused on the challenge of processing financial information based on fiscal years and periods. The discussion was centered around ways to divide cashflow data by the count of fiscal years in an array, where each fiscal year had multiple UUIDs, each representing a period within the fiscal year.


One state changer, Camir, had taken the approach of assigning a fiscal year for every period using map function. Then, he was trying to divide the cash flow value by the count of fiscal years existing in the array, having difficulty articulating his end goal. Another participant helped clarify that Camir's goal was to divide the cash flow value by the number of periods within a fiscal year, not by the count of fiscal years. To achieve this, it was suggested to use a two-step process: a filter (find all elements) function to find all periods that match a given fiscal year, then a count function to determine the count of these periods. However, the suggestion was made to use a filter-reduce pattern, instead of a map function for the divisor. A map function would transform a list into another list, whereas a reduction using count would convert the list into a single numerical value, which is the desired outcome in this case. Notably, the meeting didn't mention any of the specified technology keywords: Xano, WeWeb, FlutterFlow, Zapier, Make, Integromat, Outseta, Retool, Bubble, Adalo, AppGyver, AppSheet, Comnoco, Fastgen, Firebase, Google, OAuth, Stripe, Twilio, Airtable, DraftBit, Javascript, Typescript, React, Vue.js, JSX, HTML, CSS, lambda, serverless, State Change, ScriptTag, OpenAI, AI21.


(Source: Office Hours 8/23/2023 )

State Change Members Can View The Video Here
chris-montgomery-smgTvepind4-unsplash.jpg

View This Video Now

Join State Change Risk-Free