Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter Gallery

(1) ShareShare
ReportReport
Posted on by 39
Hi Hello,
 
SAD is my SharePoint List, displaying the items in gallery and implementing the pagination, search and filter.
Individually both functions are working, but how to combine them. Could you please help. 
 
Pagination code
-------------------
//LastN(
//FirstN(
//SAD,
//varPage
//),
//RoundDown(
//Gallery4.Height / Gallery4.TemplateHeight,
//0
//)
//)
 
//Filter and search code
Filter(
    SAD,
    Substitute(
        drp_Status.Selected.Value,
        "ALL Items",
        ""
    ) in Status.Value,
    Or(
        txt_Search.Text in 'Service Account',
        txt_Search.Text in 'App ID'
    )
)
  • CU28081555-1 Profile Picture
    39 on at
    Filter Gallery
    Hi WarrenBelz,
     
    Thanks a lot for the information, it resolved my issue.
     
     
  • Verified answer
    WarrenBelz Profile Picture
    146,695 Most Valuable Professional on at
    Filter Gallery
    Probably something like this
    LastN(
       FirstN(
          Filter(
             SAD,
             Substitute(
                drp_Status.Selected.Value,
                "ALL Items",
                ""
             ) in Status.Value,
             Or(
                txt_Search.Text in 'Service Account',
                txt_Search.Text in 'App ID'
             )
          ),
          varPage
       ),
       RoundDown(
          Gallery4.Height / Gallery4.TemplateHeight,
          0
       )
    )
     
    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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard