Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

unable to filter on a column in a collection

(0) ShareShare
ReportReport
Posted on by 101

Hi all.

 

I have been struggling with this for a couple of days now and i can't seam to find a solution. 

I have a collection from a SharePoint document library, i am trying to filter this as for some reason some of the files that are in a folder and now viewing on the app outside of the folder. (if you know why this is and there is another way to sort this please let me know) 

But the solution i thought would be best would be to filter the gallery and i thought i had found the perfect column within the collection:

 

JEVANSAP_0-1700731340263.png

I want to filter using the {path} column in the collection as you can see above, however whenever i go to write the formula, that works for other columns within the collection, it seams as though the column is not recognized. 

 

Filter(varEmtem, Name = "Email Templates/")

This formula is ok, and has no errors, 

Filter(varEmtem, Path = "Email Templates/")

However this formula says the error "incompatible types for comparison. these types can't be compared: error, Text"

 

Any help would be much appreciated. 

Categories:
  • JEVANSAP Profile Picture
    JEVANSAP 101 on at
    Re: unable to filter on a column in a collection

    That worked thank you.

  • Verified answer
    Re: unable to filter on a column in a collection

    Hi @JEVANSAP ,

     

    Please try to replace Path with 'Folder path' in your code:

     

    Filter(varEmtem, 'Folder path' = "Email Templates/")

     

     

    Best regards,

    Rimmon

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard