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 Combine SortByC...
Power Apps
Unanswered

How to Combine SortByColumns with search from one table and filter based on the label's Lookup of another table results?

(0) ShareShare
ReportReport
Posted on by 30

I have a gallery with items using this.

 

Items =

 

SortByColumns(

Search(

RDR1,

Search_Certifications_8.SEARCH_Value,

"U_WR_OTHER",

"ItemCode",

"Dscription"),

"DocEntry",

Descending)

 

In each row, I have a Button is visible when Label1_55.Text =”Y”.

Label1_55 is a lookup from another table giving a “Y” or “N”.

LookUp(RDR2, ItemCode = ThisItem.ItemCode).QryGroup7

 

How to add an additional condition for gallery items when Label1_55 is “Y” to be shown only?

Categories:
I have the same question (0)
  • Abhilash_Swain Profile Picture
    901 on at

    Hi @AshROC ,

    To use sort by columns and Search together please try 
    Search(

    SortbyColumns(

    RDR1,"DocEntry",Descending),

    Search_Certifications_8.SEARCH_Value,

    "U_WR_OTHER",

    "ItemCode",

    "Dscription")

     

    You can add the same condition to "Visible" property of the Label1_55. 
    LookUp(RDR2, ItemCode = ThisItem.ItemCode).QryGroup7 = "Y" 
    This will result in true and false and your label will be visible when the value is "Y"

     

    Please give me a Thumbs up if I answered your question and mark it as a solution to help others.

    Thanks

    Abhi (LinkedIn)

     

  • AshROC Profile Picture
    30 on at

    Ouh! The SortByColumn and Search is working. but i want to add another condition that is to filter all the items with Label1_55 = "Y".

  • AshROC Profile Picture
    30 on at

    Please help me with this as I'm wrecking me head round this problem...

     

    Many thanks in advance! 🙂

  • Abhilash_Swain Profile Picture
    901 on at

    Please share a screenshot from your Gallery to understand the design 

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard