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 / Filtering gallery base...
Power Apps
Unanswered

Filtering gallery based on another gallery raise runtime error

(0) ShareShare
ReportReport
Posted on by 945

Hello guys,

 

I'm trying to filter my gallery based on another gallery selected, like this :

Filter('General journal line attachments(mserp)', 'Journal batch number' = GalleryDetail.Selected.'Journal ID' && 'Line number' = GalleryDetail.Selected.'Line Number')

Just an information, the table : General journal line attachments (mserp) is my table, which is a Virtual entity from Dynamics 365 Finance. Strange is, it is return Runtime error. 

Axal_0-1631716296550.png

May I know what's wrong with this formula ? Isn't if there is no data, it will only display empty gallery ?

 

Thanks,

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Axal

     

    We can able to filter galleries based o another gallery and your query looks good.

     

    I'm wondering system is not allowing it since the table is a virtual table. If this is true then we may need to filter the collection instead of the Data Source.

    Set Onvisible screen 

    Set(ColJournalLineAttachments, 'General journal line attachments(mserp)')

     

    On the Gallery 2 use collection

    Filter(ColJournalLineAttachments, 'Journal batch number' = GalleryDetail.Selected.'Journal ID' && 'Line number' = GalleryDetail.Selected.'Line Number')

     

     

     

     

  • Axal Profile Picture
    945 on at

    Hi @StalinPonnusamy ,

     

    Thanks, I think it's works. I'm curios though, is there any reason why it is behave like that ?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard