Hello,
I have a calculated column in the database that shows the average total per day, (sum patient invoices total / number of patients). This results in all rows for a given day displaying the same value in the column.
I now need to reuse this calculated column to aggregate the average totals on a monthly or yearly basis. However, I realize that my initial approach may have been flawed. The current calculation is only available as an attribute, which has limited my ability to fully utilize it in visualizations. And modifying this calculation from a daily to a yearly basis does not seem to be a solution.
I would appreciate any guidance on how to better structure this calculation to allow for more flexibility in aggregating and visualizing the data across different time periods.
Thank you.