Hi all, I'm back!
First question: I have some filter conditions set on a gallery, but I'm trying to figure out how to incorporate an If() into it. I've looked elsewhere on the board, but I'm having trouble finding something that makes sense.
Essentially, if a project (Project.'Project Name') is selected from the dropdown (FP_drp_ProjectName), the gallery displays the correct items. However, I need to include that if that dropdown is blank, return all projects (but still filtered by the other conditions), since at the moment, clearing the dropdown empties the gallery.
SortByColumns(
Filter(
'Time Entries','Time Entries (Views)'.'Time Entries for Approval',
Date > VarSelectedStartDate && Date < VarSelectedEndDate &&
Project.'Project Name' = FP_drp_ProjectName.SelectedText.Result
),
"msdyn_date",
Ascending
)
Second question: is there a way to get the first date of a week when you pick a date in a DatePicker? I need to set the Sunday of a week as my StartDate variable. As far as I can tell, I can't really change the DatePicker all that much, so I want to ensure that selecting any date in a week starts you on that Sunday.
What would be really useful is also being able to get a list of all dates in that week.
Thanks!