Hi,
I'm attempting to sort and filter in a gallery from SQL server.
I would like to first sort by date to only display records that were input on that day. Second I need to filter these records to only show the records submitted from the ID of the person accessing the gallery. I'm able to do either or, but the combination of the two is giving me trouble.
Items:
SortByColumns(Filter('Database', IsToday(Created), ID=DataCardValue.Text), "Created", If(SortDescending1, Ascending, Descending),"ID")
Thanks
Solved! Go to Solution.
If you want a compound filter condition, connect them with &&, not comma:
Filter('Database', IsToday(Created) && ID=DataCardValue.Text)
Hi @Anonymous
Could you please reference @LRVinNC 's suggestion?
And is the ID not the only value?So you use sort?
Could you please change your formula expression as this:
Sort(Filter('Database',IsToday(Created) && ID=DataCardValue.Text),Created,If(SortDescending1, Ascending, Descending))
If the ID is one int type, the formula expression as this:
Sort(Filter('Database',IsToday(Created) && ID=Value(DataCardValue.Text)),Created,If(SortDescending1, Ascending, Descending))
Best Regards.
Yumia
If you want a compound filter condition, connect them with &&, not comma:
Filter('Database', IsToday(Created) && ID=DataCardValue.Text)
Hi @Anonymous
Could you please reference @LRVinNC 's suggestion?
And is the ID not the only value?So you use sort?
Could you please change your formula expression as this:
Sort(Filter('Database',IsToday(Created) && ID=DataCardValue.Text),Created,If(SortDescending1, Ascending, Descending))
If the ID is one int type, the formula expression as this:
Sort(Filter('Database',IsToday(Created) && ID=Value(DataCardValue.Text)),Created,If(SortDescending1, Ascending, Descending))
Best Regards.
Yumia
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
202 | |
184 | |
75 | |
45 | |
37 |
User | Count |
---|---|
337 | |
260 | |
116 | |
71 | |
66 |