Invalid coercion from 'value' to 'string' for 'if (PageNumber() = 1) then ([End Date]) else (' ')'.
thank you in advance
Pagenumber function may retun in string format change it and try
The data type returned by the expression should be the same
In your case
then ([End Date]) - returns a date
else (' ')' - returns a String