Hi @land_of_bi,
While I do not have a similar data breakdown that I could test this on, would it work if you created date parameters for your start and end timeframes and use those in your calculated field?
Hello @land_of_bi, I believe I have a way to accomplish this. You should be able to make this work by just applying the date filters directly to the visual. You can create your x-axis by using the extract function to grab the hour number:
X-Axis = extract('HH', {Date})
Now you can create the Y-Axis value by using countOver partitioned by each day at the hour level, then nest that in a maxOver partitioned by hour. This should provide the max value across all days for each hour. It would look like this:
Day and Hour = truncDate('HH', {Date})
Y-Axis = maxOver(countOver({value you want to count}, [{Day and Hour}], PRE_AGG), [{X-Axis}], PRE_AGG)