The {2} expression for the {0} {1}' refers to the global variable PageNumber or TotalPages within a data set aggregate. These ...

The {2} expression for the {0} ‘{1}' refers to the global variable PageNumber or TotalPages within a data set aggregate.  These global variables cannot be used in scoped aggregates within the page header and page footer.