Hi all,
A short question, I've in my onvisible settings a clear collect where I'm collection all the records that are not older then 31 days.
To achieve that I've build the follow code:
ClearCollect(
Col_Myhours,
Filter(
registration,
User = Var_User, Created >= DateAdd(
Today(),
-31,
Days
)
)
)
It works fine, my collection is filled. But it's give me the error: "Date add function cannot be blank".
I didn't know what/ where the issue is.. Does anyone know what's wrong?
Regards,
Dennis
@dennisb88 super helpful thanks for the solution!
Hi @C-Papa , thank you for your reply.
You're suggestion was the right one! Thanks!
The correct formula:
Set(
var_date,
DateAdd(
Today(),
-31,
Days
)
);
ClearCollect(
Col_Myhours,
Filter(
registration,
User = Var_User,
Gemaakt >= var_date
)
)
Try setting the date add value in a variable and using the variable in the formula
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473