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 / Gallery with LookUp Va...
Power Apps
Answered

Gallery with LookUp Values dissapear when Gallery sort added

(0) ShareShare
ReportReport
Posted on by 45

Support,

 

I have build an app that filters on a gallery, there are lookup fields, the gallery works correctly, however the moment I add a sort function the fields that reference a lookup changes to blank values, when I apply the same code to a gallery and exclude the lookUp fields it works perfectly.

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    Kindly show the formula to enable is look at it.


    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • WillieEra Profile Picture
    45 on at

    The formula to do the lookup: LookUp('[dbo].[aas_wf_destination_dim_tbl]',Dest_ID_FK=Dest_ID,Destination)

    This works in the gallery,

     

    However the moment change the item on the gallery from the table name to the sort capability the LookUp values goes blank

    Here is the Item code under the gallery for the sort:

     

    Sort(Filter('[dbo].[aas_wf_transaction_tbl]',Cust_ID_FK=Gallery_Job_Search_Customer.Selected.Cust_ID),Open_Date,Descending)

     

    It works perfectly except for the LookUp values that goes missing.

     

  • Verified answer
    eka24 Profile Picture
    20,925 on at
    Use:
    Sort(Filter('[dbo].[aas_wf_transaction_tbl]',Cust_ID_FK=Gallery_Job_Search_Customer.Selected.Cust_ID),Open_Date,Descending)

    Is this Gallery_Job_Search_Customer.Selected
    a Dropdown.
    If so what is the items property of the Dropdown
  • WillieEra Profile Picture
    45 on at

    The Gallery_Search_Customer is another gallery:

    You select the screen that shows you a gallery of clients, then you select the client from the gallery which directs you to another screen with a gallery that contains the jobs for that client.

     

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