cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filter a specific choice from the "choice" type row in SP List

Hello, I am trying to return the "Completed" choice from my SP list and display in my powerapp. Currently, I am returning all choices. I have a sort and filter function already, I don't know how to add this last part into it? Thanks. 

 

Current formula: 

Sort(
Filter(Feature1_1,
TitleFilter.Selected.Value = "Filter Milestones"
Or Title = TitleFilter.Selected.Value),
Title, Ascending
)

ChoiceType.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Filter a specific choice from the "choice" type row in SP List

Hi @Solomon_c ,


Since the Progress column is Choices type which is complex field, we have to use Progress.Value code to reference Progress column in Filter function.

 

Sort(
Filter(Feature1_1,
(TitleFilter.Selected.Value = "Filter Milestones"  Or Title = TitleFilter.Selected.Value) && Progress.Value = "Completed"),
Title, Ascending)

 

Hope this helps.

Sik

View solution in original post

8 REPLIES 8
Highlighted
Super User III
Super User III

Re: Filter a specific choice from the "choice" type row in SP List

Try:

You can add another Dropdown for the Completed:

Then filter as:


Sort(
Filter(Feature1_1,
TitleFilter.Selected.Value = "Filter Milestones"
Or Title = TitleFilter.Selected.Value&&
Progress=CompletedDropdown.Selected.Value),
Title, Ascending)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper I
Helper I

Re: Filter a specific choice from the "choice" type row in SP List

@eka24 I tried what you said and am getting this error with the "=".

Progress.png

I also tried 

Sort(
Filter(Feature1_1,
TitleFilter.Selected.Value = "Filter Milestones"
Or Title = TitleFilter.Selected.Value && ProgressFilter.Selected.Value = "Completed"),
Title, Ascending). This formula does not give me an error, however, it still shows "Not started" instead of all "Completed". 

Highlighted
Super User III
Super User III

Re: Filter a specific choice from the "choice" type row in SP List

Please show the items on dropdown, ProgressFilter

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper I
Helper I

Re: Filter a specific choice from the "choice" type row in SP List

ProgressFilter.png

Highlighted
Super User III
Super User III

Re: Filter a specific choice from the "choice" type row in SP List

Replace the = with in

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper I
Helper I

Re: Filter a specific choice from the "choice" type row in SP List

@eka24 I tried that. See screenshot, I get an "Invalid argument type. Cannot use text values in this context."In.png 

Initially, I am trying to display all data with milestone tasks that are completed. Then when I filter the Milestone, I only want to see completed as well. I have tried this formula, but no luck either.  

Sort(
Filter(Feature1_1,
TitleFilter.Selected.Value = "Filter Milestones" && ProgressFilter.Selected.Value = "Completed"
Or Title = TitleFilter.Selected.Value && ProgressFilter.Selected.Value),
Title, Ascending)

 
 
Highlighted
Community Support
Community Support

Re: Filter a specific choice from the "choice" type row in SP List

Hi @Solomon_c ,


Since the Progress column is Choices type which is complex field, we have to use Progress.Value code to reference Progress column in Filter function.

 

Sort(
Filter(Feature1_1,
(TitleFilter.Selected.Value = "Filter Milestones"  Or Title = TitleFilter.Selected.Value) && Progress.Value = "Completed"),
Title, Ascending)

 

Hope this helps.

Sik

View solution in original post

Highlighted
Super User III
Super User III

Re: Filter a specific choice from the "choice" type row in SP List

I'd progress is a choice collumn then @v-siky-msft is right add value as

 

Sort( Filter(Feature1_1, (TitleFilter.Selected.Value = "Filter Milestones" Or Title = TitleFilter.Selected.Value) && Progress.Value = "Completed"), Title, Ascending

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,823)