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 @aeng30
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 @aeng30
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
User | Count |
---|---|
138 | |
132 | |
75 | |
74 | |
73 |
User | Count |
---|---|
206 | |
195 | |
70 | |
59 | |
52 |