Hi Everyone. I was hoping I could get some help.
I am trying to sort a Gallery by Title1, this field holds a number in format x.xx. The title field was renamed to room, but I tried both and couldn't get it to work, it just freezes the web app each time I get something wrong. I just want it to sort by Room/title in descending order.
I thought that I needed the below but I must not understand the way that these are named.
SortByColumns(ListName, "Field_Name").Title
Any help would be awesome.
Solved! Go to Solution.
Try something like this:
SortByColumns([DataSource], "Title1", If(SortDescending1, Descending, Ascending))
If you want to add a filter:
SortByColumns(Filter([DataSource], [Formula]), "Title1", If(SortDescending1, Descending, Ascending))
Try something like this:
SortByColumns([DataSource], "Title1", If(SortDescending1, Descending, Ascending))
If you want to add a filter:
SortByColumns(Filter([DataSource], [Formula]), "Title1", If(SortDescending1, Descending, Ascending))
Thanks. It was close, I ended up with the below.
SortByColumns([DataSource], "Room", If(SortDescending1, Ascending, Descending))
I'm not using a filter, so this made it easier for me.
hi, im new with powerapps...
i need to know where should i put that command above to sort the gallery view display? @UserInterface7
@UserInterface7 wrote:Thanks. It was close, I ended up with the below.
SortByColumns([DataSource], "Room", If(SortDescending1, Ascending, Descending))
I'm not using a filter, so this made it easier for me.
@PytByt Hi, you should past the formula in the formula bar when the item property is selected in the dropdown on the upper lefthand side
Yes, exactly.
It goes into the Items property of the gallery.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
214 | |
205 | |
86 | |
59 | |
38 |
User | Count |
---|---|
322 | |
260 | |
127 | |
86 | |
55 |