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 / Filtering Collection N...
Power Apps
Suggested Answer

Filtering Collection Not Working

(0) ShareShare
ReportReport
Posted on by 20
Hello!
 
I have a collection that stores environments and a dataverse table that we update with the environments we want to display in our app. I was filtering the collection based on a filter in our dataverse table (see original code below). This has been working for over a year with absolutely no changes and then yesterday it stopped working. It does not show an error, it just shows blank instead of the environment name. The 'Environment Name' column is a single text field. It will work with another column called 'Environment ID' which is also a single text field. Not sure why it stopped working all of a sudden.
 
Filter(
        colAllEnvironmentsFriendly,
        FriendlyName in Filter(
                   'Environment Profile',
                   'Environment Type' = "DEV"
        ).'Environment Name'
)
 
Any help would be greatly appreciated!
Categories:
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    789 Moderator on at
    These are just suggestions to help you debug.
     
    First thing to check is that some pyschopath didn't modify any fiednames in the Table structures.
     
    Next, break down your current code to a second collection. Ensure that it's being populated as you expect. 
     
    ClearCollect(colProfileDEV,
            Filter(
                       'Environment Profile',
                       'Environment Type' = "DEV"
            ).'Environment Name'
    )
     
    Then, do the combo of collections to extract the data.
    Filter(
            colAllEnvironmentsFriendly,
            FriendlyName in colProfileDEV.'Environment Name'
    )
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at
    Another suggestion - separate the filters
    With(
       {
          _Names:
          Filter(
             'Environment Profile',
             'Environment Type' = "DEV"
            ).'Environment Name'
       },
       Filter(
          colAllEnvironmentsFriendly,
          FriendlyName in _Names.'Environment Name'
       )
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • Nievechica24 Profile Picture
    20 on at
    Thank you both for your responses. I tried both and neither worked. They do not error, it just does the same thing - blank entries. I tried switching the environment name for environment id and that works, but not showing the information that we want (showing id instead of the friendly name).
  • Nievechica24 Profile Picture
    20 on at
    Also I am the only user with access to edit the app and I have made no changes since March of this year.
  • Nievechica24 Profile Picture
    20 on at
    abc123,
     
    It does create the collection correctly, but still shows blank when I try to filter the collection. I even tried using the schema name and nothing.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard