I have two questions on the attached example app-
1- I have an analytic app that asks the user select the last twelve months from an upstream set of data. I want to use that same selection in a formula tool at the end of the workflow to perform an average calculation over the last 12 months as shown in the attached workflow. The issue I am having is that in the second analytic section where it feeds into the formula tool I need to have brackets around each field for it to work properly. I currently have it constructed so the user has to select the last 12 months twice when running the workflow as an analytic, which isn't ideal. Is there a better way so I can manipulate the results from the first app selection so it works in the formula downstream and the user only has to select the last 12 months once when the app is run as an analytic?
2- The average formula tool at the end of the workflow is treating null values as 0 and not calculating the average correctly in those cases. How can I fix this using the formula tool?