So I had a couple of FirstN queries earlier that were solved very quickly and I have one more !
I am trying to do a FirstN on a filtered list but instead it is FIltering the FIrstN list ! I've played around with it so again think I'm close but just not there.
Here's what I have
Filter(FirstN(Sort(MainList, QueriedAmount, Descending),Value (TopNumber.Text)),QueryStatus<>"Closed",QueryStatus<>"Resolved")
So that actually works except it Filters the FirstN instead of the list.. which makes sense because Filter is listed first. So in otherwords it takes the Top 10 and then it filters that to give me the ones that aren't closed or resolved. I want it to filter the main list for those that aren't closed or resolved and then do the FirstN on those !
I've tried moving where the Filter command is but just can't get it right !
Do I need to do the filter first put the result of that into a collection somewhere and then do the FirstN on that? or is there an easier way to do it?
TIA
Solved! Go to Solution.
Hi @vffdd ,
I would go this way
FirstN(
Sort(
Filter(
MainList,
QueryStatus<>"Closed" && QueryStatus<>"Resolved"
),
QueriedAmount,
Descending
),
Value(TopNumber.Text)
)
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 @vffdd ,
I would go this way
FirstN(
Sort(
Filter(
MainList,
QueryStatus<>"Closed" && QueryStatus<>"Resolved"
),
QueriedAmount,
Descending
),
Value(TopNumber.Text)
)
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
195 | |
52 | |
41 | |
39 | |
35 |
User | Count |
---|---|
263 | |
86 | |
71 | |
69 | |
66 |