periodToDateMaxOverTime - Amazon QuickSight

Important: We've redesigned the Amazon QuickSight analysis workspace. You might encounter screenshots or procedural text that doesn't reflect the new look in the QuickSight console. We're in the process of updating screenshots and procedural text.

To find a feature or item, use the Quick search bar.

For more information on QuickSight's new look, see Introducing new analysis experience on Amazon QuickSight.


The periodToDateMaxOverTime function calculates the maximum of a measure for a given time granularity (for instance, a quarter) up to a point in time.


periodToDateMaxOverTime( measure, dateTime, period)



An aggregated measure that you want to do the calculation


The date dimension over which you're computing PeriodOverTime calculations.


(Optional) The time period across which you're computing the computation. Granularity of YEAR means YearToDate computation, Quarter means QuarterToDate, and so on. Valid granularities include YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, and SECONDS.

The default value is the visual's date dimension granularity.


The following example calculates the maximum fare amount month over month.

periodToDatemaxOverTime(max({fare_amount}), pickupDatetime, MONTH)

							This is an image of the results of the example calculation with illustrations.