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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to have gallery on...
Power Apps
Unanswered

How to have gallery only display certain documents

(1) ShareShare
ReportReport
Posted on by 18

Hi everyone

 

I am trying to make a gallery that only displays certain documents in my powerapp. I know that all name for that files I want to display will always start with '6' and have a '-' at the 8th position in the string.

 

Fredemanze_1-1693400692580.png

 

I have tried different variations of what is seen in the photo above thus far, it keeps giving me an error.

 

Any help with this would be much appreciated

 

Thank you!

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    value is not a correct syntax in Power Fx,

    It has to be an uppercase V,

    Value

    try that see if it helps

    Like the below:

    Value

     See if this helps @Fredemanze 

  • Fredemanze Profile Picture
    18 on at

    Thank you @poweractivate , that worked for hiding these. However the lines where these were are now just blank, is there any way to make it so these disappear completely?

    Fredemanze_0-1693406592692.png

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Fredemanze 
    Yes try going into the Height property of especially the Rectangle2 (probably only that one) and try using same formula you used, except instead of true, false, use (whatever was there before), 0 

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    Instead of using the child controls of Gallery, see if changing the Items property to below formula may be a better approach for you, then leaving the child controls untouched.

    Try with a new Gallery and see if the below formula works for you:

    You place the below formula in the Items property of the Gallery:

    Filter(yourDataSource, StartsWith(Name, "6"))

    Replace yourDataSource in the above with the actual name of your data source.

     

    If approach above doesn't work for you, you can continue the approach you were doing.

    However, above may be a better approach for you.

    I intentionally do not use Left, Value, etc. in the above Filter as these are likely not delegable.

    However its seems you simply want to check if the Name starts with a "6" so the above filter may work, as it's not important if the value type is a number or not, just seeing if the name starts with "6" in particular may suffice and may be fully delegable as well.

    See if it helps @Fredemanze 

  • Fredemanze Profile Picture
    18 on at

    Yes this worked much better for me. Thank you @poweractivate !

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard