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 / Gallery to show multip...
Power Apps
Answered

Gallery to show multiple tables

(0) ShareShare
ReportReport
Posted on by 227

Is it possible to have your main gallery show multiple linked fields from 3 tables

 

EG - show field 1 from another tabled based on unique key?

 

J

Categories:
I have the same question (0)
  • h-nagao Profile Picture
    392 on at
    Hi,
    It is possible to display fields from another tables, if there exists unique key.

    1. Define 2 tables (ex: table1 , table2)
    2. Set Items property of Gallery as table1
    (assuming “unique key” is unique in table1)
    3. Add label to Gallery and set text property as
    LookUp(table2, <unique key field in table2>= ThisItem.<unique key name>, <return field name in table2>)

    Thanks,
  • jesenavaranjan Profile Picture
    227 on at

    Thank you!  This is great, however I can't get it to work:

    Is my syntax okay below?

    This is for the Text property of the label (tbDeliveryInfo is the table 2)

    LookUp('[dbo].[tbDeliveryInfo]',<ID>=ThisItem.<ID>,<DeliveryInfoID>)

    I am getting the error 'Expected Operator'

     

    Jese

  • h-nagao Profile Picture
    392 on at
    Hi Jese,
    I think syntax is okay...
    To figure out cause of error, could you attach screenshot of error and give a bit detail of your table?

    Thanks,

  • jesenavaranjan Profile Picture
    227 on at

    Heres a screeshot

     

    Table1 has 'MilestoneID'

    Table 2 had additional info on 'MilestoneID'

     

    Thank you

    screenshot.png
  • h-nagao Profile Picture
    392 on at
    Hi Jese, Thank you sharing detail, and I'm sorry my expression is a bit misleading. Please remove <>'s from field name, i.e., Just set Text property as LookUp('[dbo].[tbMilestoneDeliveryInfo]' , MilestoneID = ThisItem.MilestoneID ,MilestoneDeliveryInfoID) Thank you,
  • mogulman Profile Picture
    764 on at

    You don't mention the data source but when I need to do this in Gallery I use SQL Server views.  View appears as table.  BTW, VGA stands for View for Gallery.

     

    ALTER VIEW [dbo].[MatterVGA]
    AS
    SELECT m.MatterID, m.MatterName, s.Stage, m.SettlementDate, cl.ClientName
    FROM dbo.Matter m
     INNER JOIN Client cl ON m.ClientName = cl.ClientID
    	INNER JOIN Stage s ON m.Stage = s.StageID
    GO
  • jesenavaranjan Profile Picture
    227 on at

    Hi

     

    My syntax is still returning an error

     

    And says 'Invalid Argument Type'

    Capture.PNG
  • jesenavaranjan Profile Picture
    227 on at

    I have thought about doing this

    But I might have multiple rows in the my table 2 , which I need to call from

    I will also consider doing this to see

  • h-nagao Profile Picture
    392 on at
    Hi I have checked your error, and you may have also "Name isn't valid...." error on ThisItem.MilestoneID. This error is arise when its name is not correct in data source (Table1). Could you verify field name once again?
  • jesenavaranjan Profile Picture
    227 on at

    It appears to be correct here?

     

    Also what is the syntax for multiple criteria? Maybe because there is a sysdate within the data (table-dummy data right now) so if I select latest sysdate, perhaps it will only show 1 row?

     

    Jese

    Capture2.PNG

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
Kalathiya Profile Picture

Kalathiya 419

#2
WarrenBelz Profile Picture

WarrenBelz 397 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 345 Super User 2025 Season 2

Last 30 days Overall leaderboard