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 Apps
Unanswered

Filtering Gallery

(0) ShareShare
ReportReport
Posted on by 6

I am building a canvas app to these details:

 

1) A booking summary form that creates an AutoNumber (BookingID) column that serves as an identifier for a travel booking.

2) I then have a booking detail form with a lookup field to the booking summary with the underlying table related to the summary table on the BookingID. This has a combo box to select the aforesaid BookingID and adds several records representing travel segments for the booking.

3) Below that, I have a gallery pointing to the datasource of the booking detail. 

My need is for this gallery to filter records based on the BookingID selected in 2) above. I have tried several approaches without success in the filtering. Please suggest a method. Have attached an image showing the screen.

Booking Canvas App.jpg
Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @DanBalach 

     

    For the Items property of our Gallery in #3, you can do something like:

    Filter(datasourceName,'Booking ID' = dropDownBooking.Selected.Id)

    Code is given on the presumption that the BookingID dropdown is named dropDownBooking

    cha_cha_0-1685193756035.png

     

    It would be helpful to let me know what type of column does the BookingID here in this gallery is so we can refine the code.

    cha_cha_1-1685193837355.png

     

  • DanBalach Profile Picture
    6 on at

    Thanks for your response. That field in gallery is:

    ThisItem.BookingID.BookingNbr.

    Bookingid is the field in BookingDetails and this is looking up to BookingNbr in the summary table. Field snapshot attached.

    FieldsBookingDetail.jpg
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello, 

     

    Since you are using Dataverse and LookUp/relation is set, you can have your code like this

    comboBox.Selected.nameOfTableYouWantToFilter

     

    The comboBox to the control name of your BookingID drop down while nameOfTableYouWantToFilter is the name of the Table you want to filter. Can you please try it show me what happens?

     

  • DanBalach Profile Picture
    6 on at

    Hi Cha_cha

     

    I get an error on that formula. 

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    Can you please show the error?

     

    Also when you type just after "comboBox.Selected.", is it suggesting any column names?

     

    can you send screenshot so I can provide further suggestions?

  • DanBalach Profile Picture
    6 on at

    Hi Cha Cha

     

    Thanks. Just trying a different  approach on the lines you suggested in earlier post. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard