web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Choice fields - show a...
Power Apps
Unanswered

Choice fields - show all choices in app

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

 

I have seen various questions on choice fields and specifically how to show all records with the option to apply multple filters - and then show all again.

The underlying SharePoint table has a single line Title text field and includes two Choice fields, Region and Sector.

The aim is to filter on each choice field item via dropdowns and refine with partial text matches from the Title field.

The following code achieves the filtering but I cannot see how to show all.

 

SortByColumns
(Filter(RiskList,ReadRegion = Dropdown1.Selected.Value, ReadSector = Dropdown3.Selected.Value, TextSearchBox1.Text in Title),
"MRL",SortOrder.Descending)

 

The dropdown controls (Data, Items) are linked to the table choices - as in Distinct(RiskList,ReadRegion).

Note 1: ReadRegion and ReadSector are calculated fields derived from the Choice fields which, I've seen from other posts, seems to be a necessary workaround due to limitations on direct use of choice fields.

Note 2: I have seen the 500 record limitations on Distinct and SortByColumns - this is not an issue for this list.

 

I guess one way to show all Regions/all Sectors would be to have a Clear button and then use an If function ahead of the filter. But that's not very pretty!  Ideally an ALL option could be included in the Choice dropdown in the app but I cannot see how to add that to the choices derived from the table.

 

I'm a newcomer to the SharePoint/PowerApps platform but am impressed by the possibilities and would appreciate any suggestions. I have seen some other posts on this topic but none as yet seem to have resolved this scenario.

 

Thanks,

C

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @chahgllp,

     

    Would you please help to describe more about "the code achieves the filtering but I cannot see how to show all." part? Did you mean that this formula would show part of the list items but not show all the items that matches the condition? 

     

    Regards,

    Mona

  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @chahgllp,

     

    About the limitation of filter function on Choice column, here is one workaround you could try:

    https://www.peters.com/powerapps-filter-sharepoint-list-items/

     

    Also, did you get blue dot suggestion saying that there is a service limitation when using the formula?

    medium.png

     

    For your reference about the blue dot:

    https://powerapps.microsoft.com/en-us/tutorials/delegation-overview/

     

    Best regards, 

    Mona

  • chahgllp Profile Picture
    2 on at

    Thanks Mona

     

    I think the peters.com link references a case where the app is intended to only show the items that are the responsibility of a particular user. So the "always on" filtering is perfect for that.

     

    Yes, I get the blue dot warning and have noted the delegation issue. Not a problem for this app.

     

    In response to your question about the intention, imagine an app with a choice field, Region, that offers these options as a single choice:- Asia, Middle East, Europe, Africa, Americas.

     

    The code in my example works fine to filter by one selected Region - but I would also like to show all Regions.

     

    Many thanks, C

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard