I have a Gallery that is accessed from several screens and I want it to update based on the information passed. I set the Gallery Item as a variable "Cases". I have four screens that navigate to this screen with the following variable onselect:Navigate(ClientCaseScreen,Transition.None,{Cases:SortByColumns(Filter('[dbo].[CaseTable]',ClientID=Client.ClientID), "IncidentDate", If(SortDescending2, Ascending,Descending))})
I get "The Function if has some invalid arugments" for the "If(SortDescending2, Ascending,Descending)"
I had it working for two of the screens but when I added a third screen it errored on all of them.

Report
All responses (
Answers (