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 / filter galery from - to
Power Apps
Answered

filter galery from - to

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Community, 

 

I have one Gallery that is showing the information from one Entity called "Personas"

On the other hand i have one variable called FROMID with the last id of this entity

I want to put in the items formula something similar to this

 

Show the las 100 records from Persona starting from the variable FROMID.

 

In addition i will create one "pagination" where the icon next will update the variable FROMID with the last id of the gallery.

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Can you try to update the expressions to:

    Filter(Personas, StartsWith(ID, FROMID)

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Do you want to divide the entity records to 100 per page in the gallery, and the first page to show the first 100 records?

    If you do, please set the gallery screen’s OnVisible to:

     

    Set(FROMID,Value(Last(FirstN(Sort(Personas,Value(ID),Ascending),100)).ID))

     

    Then set the gallery’s Items:

     

    Sort(Filter(Personas,Value(ID)<= Value( FROMID), Value(ID)> (Value(FROMID)-100)),Value(ID))

     

    At last, to update the variable, set the OnSelect of the Next Icon to:

     

    Set(FROMID,Value(Last(Sort(Gallery1.AllItems,Value(ID))).ID)+100)

     

    I've made a test:

    dividedgallery.gif

    Is it like what you want?

     

    Best regards,
    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution  to help the other members find it more.

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard