I am using the following condition in the Text property of a Gallery Label field.
When the Gallery fields are populated with data there is no error (in development view).
When there is no data in the Gallery fields the error (shown below) appears.
Gallery / DaystoRenewalFld / Text Property:
Lookup(DaystoRenewalCollection,ClassTitles=ThisItem.CQTitle).DaystoRenewal - DateDiff((ThisItem.DteofCQ),Today(),Days)
Power Apps Error Message:
"The first argument to the DateDiff function cannot be blank."