Announcements
Hi
I cant seem to sort, filter and search by ID. I keep on receiving an error message.
SortByColumns(Search(Filter('Stationery Master',Text(ID)=TextInput2_1.Text),Text(ID)=TextInput2_2.Text),"ID",If(SortDescending1,Descending,Ascending))
Thank you
Hi @MiteshGovan
You don't need the Search bit, try this way:
Sort(Filter('Stationery Master',ID=TextInput2_1.Text),ID,If(SortDescending1,Descending,Ascending))
In the last If SortDescending1 I think you need to evaluate .value, but it depends on the type of control.
What do i do below?
In the last If SortDescending1 I think you need to evaluate .value, but it depends on the type of control
You can choose to hard code de order like this:
Sort(Filter('Stationery Master',ID=TextInput2_1.Text),ID,Ascending)
or if you want your users to chosse the display order, add a dropdown controle with two options Ascending and Desceding.
and use Selected.value on the sort function:
Sort(Filter(Person,ID=TextInput1.Text),ID,If(Dropdown1.Selected.Value="Ascending",Ascending,Descending))
How do I add other columns and text input? At the moment there is only one column and one textinput.
I receive an error message below when i add another text column.
Sort(Filter('Stationery Master',ID=TextInput_order.Text),ID,Department=TextInput2_2.Text,"Department",If(SortDescending1,Descending,Ascending))
you should incert every filter options inside Filter fuction.
Sort(Filter(Person,ID=TextInput1.Text&&Departament=TextInput2),ID,If(Dropdown1.Selected.Value="Ascending",Ascending,Descending))
How do i put a sort on the below?
Sort(If(Dropdown_Current.Selected.Value = "All",'Stationery Master',Filter('Stationery Master',FormStatus=Dropdown_Current.Selected.Value),Descending,Ascending)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 220 Super User 2026 Season 2
WarrenBelz 194 Most Valuable Professional
Mohsin Ali 150