I have a gallery based on a Sharepoint list, that I am sorting and filtering with a switch statement based on radio button selection, however, I now want to add a second level of filtering to one of the switch statement options.
Here is the switch statement in its current form, which is working quite well:
Switch(scrGalReviewStatus_Radio.Selected.Value,
"Yes", Sort(Filter('LIST Ready For Review', LISTcol_Reviewed = "Yes"), LISTcol_reviewedDS, Descending),
"Clear Notes",Filter('LIST Ready For Review', LISTcol_Reviewed = "Clear Notes"),
Filter('LIST Ready For Review',LISTcol_Reviewed = "No"))
Here's what I'd like to add to the "Yes" option: that the gallery only include items not more than 30 days old since an item's submission date. I want to try something like this, but I'm not able to get anything to work (red text represents the second level for filtering in the "Yes" option only):
Switch(scrGalReviewStatus_Radio.Selected.Value,
"Yes", Sort(Filter('LIST Ready For Review', LISTcol_Reviewed = "Yes" && (Today() - LISTcol_ReviewedDS) < 30), LISTcol_reviewedDS, Descending),
"Clear Notes",Filter('LIST Ready For Review', LISTcol_Reviewed = "Clear Notes"),
Filter('LIST Ready For Review',LISTcol_Reviewed = "No"))
"LISTcol_ReviewedDS" = is the column in my Sharepoint list that represents the date an item was submitted... it's like a date stamp. Once it's more than 30 days old, that item is not to be included in the gallery anymore.
Hopefully, I have given enough information for someone to understand what I am trying to accomplish... and many thanks in advance!
Kristine