So I have tried:
SortByColumns(Filter([@MyList], StartsWith(Approve.Value, TextSearchBox1.Text)), "Approve", If(SortDescending1, Descending, Ascending))
But I cannot sort on the "Approve" value.
The above works if I change "Approve" to "ID" or "Title" though.
Note: This is from a SPO list
I am still new but this is boggling to me.
Solved! Go to Solution.
Hi @Shane_Dev ,
I am assuming "Approve" is a Lookup field - you cannot sort on this. Try
SortByColumns(
AddColumns(
Filter(
[@MyList],
StartsWith(
Approve.Value,
TextSearchBox1.Text
)
),
"Approval",
Approve.Value
),
"Approval",
If(
SortDescending1,
Descending,
Ascending
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Shane_Dev ,
I am assuming "Approve" is a Lookup field - you cannot sort on this. Try
SortByColumns(
AddColumns(
Filter(
[@MyList],
StartsWith(
Approve.Value,
TextSearchBox1.Text
)
),
"Approval",
Approve.Value
),
"Approval",
If(
SortDescending1,
Descending,
Ascending
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Approve is a choice field (Yes, No, Empty)
That appears to have worked!
Now, one last question is how do i add another column to this list in the similar fashion. So lets say I want to add Status.Value as well as the Approve.Value
Is it as simple as just going:
SortByColumns(
AddColumns(
Filter(
[@MyList],
StartsWith(
Approve.Value,
TextSearchBox1.Text
)
),
"Unicorns",
Approve.Value,
"Test",
Status.Value
),
"Test",
If(
SortDescending1,
Descending,
Ascending
)
)
Yes, that should work also.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Thanks! You the man!
I am still learning but this is pretty cool.
User | Count |
---|---|
197 | |
124 | |
86 | |
49 | |
42 |
User | Count |
---|---|
284 | |
160 | |
136 | |
75 | |
72 |