In Quick Sight, you can create calculated fields using the calculated field editor. Here’s how you can create the calculation for average sessions per day:
- First, create a calculated field for the number of distinct sessions:
distinct_count({Session ID})
- Then, create a calculated field for the number of days in the selected time frame:
dateDiff({Date Created}, min({Date Created}), max({Date Created}), 'DAY') + 1
- Finally, create the calculated field for the average sessions per day:
distinct_count({Session ID}) / (dateDiff({Date Created}, min({Date Created}), max({Date Created}), 'DAY') + 1)
To use this in your analysis:
- Add your date filter to the analysis.
- Add this calculated field to your visual.
The calculation will update based on the date range selected in your filter.