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 Lookup filters...
Power Apps
Unanswered

Gallery Lookup filters all records

(0) ShareShare
ReportReport
Posted on by 6

So this has been driving me bonkers all day and I'm ready to rip my hair out. (Please keep in mind that I'm very new to Power Apps and Dataverse).

 

I'm playing with a new Power App that I've created. I have a list of reports that people could subscribe to in our organisation, the AAD User table for the users in the organisation, and a joining table ('ReportSubscriptions') between them to create many-to-many listing of people subscribing to reports. My joining table includes

  • "UserName' - a lookup to the ADD User table; and
  • "ReportSubscribed" - the lookup to the report listing
  • Whether their request for subscription is pending or not (Y/N)

On my screen I've created a Gallery with the data source being the joining table. I'm having 2 issues with it.

 

  1. I can use syntax like ThisItem.UserName.Mail to get the subscribers email address no problem - I get my 3 test records listed - and ThisItem.'Request Pending' to get the status of their request in the join table (also no problem, still 3 test records). But as soon as I change the Text to ThisItem.ReportSubscribed.'Report Name' (or any field from the Report list table), the names of the reports all flash on the screen briefly and then they're gone. All records seem to disappear and the record selector disappears (which is why I think it has returned no records as opposed to the data being blank). I can't figure this out, and I've used exactly the same syntax as I did for the AAD User table lookup. There is definitely data and all 3 test records have 'Report Name' filled in.
  2. I also can't get this Gallery to filter to the current user by matching the email address in ReportSubscriptions. I have another Gallery set to the AAD Users table, and have set Items to "Filter('AAD Users',Mail=varUserEmail)" to filter to the current user (where varUserEmail is defined in OnStart as Set(varUserEmail, User().Email);). That works fine.
    However, when I try the same thing with the joining table, it doesn't work - again, no records. I've used "Filter(ReportSubscriptions,UserName.Mail=varUserEmail)", and a whole lot of variations on this to try to get it to work, but it just doesn't want to cooprerate.

Any advice would be very much appreciated.

  • calerof Profile Picture
    255 on at

    Hi @SafeKeeping,

    Try making your relationships:

    ReportSubscribed *-1 User

    ReportSubscribed *-1 Report

    Cheers,

    Fernando

  • SafeKeeping Profile Picture
    6 on at

    Hi @calerof ,

    Thanks for the reply. I believe that's what they are already set to. Both are listed as "Many-to-one" in the relationships table for the join table.

  • calerof Profile Picture
    255 on at

    It would be helpful if you share at least screenshots of your relationships, gallery and labels formulas to try to help you. I replicated it on my side, and "it just works".
    Figure1.pngfigure2.pngfigure3.pngfigure4.png

    F

  • SafeKeeping Profile Picture
    6 on at

    These are the screenshots I've taken (apologies for the redactions).

    I've screenshotted the relationships, the working galleries, the galleries not working, with the formula bar to show what I've set them as. The last two shots show that the change to just the label from the user field to the report field disappears all records, even though the relationships are the same.

    Pic1.PNGPic2.PNGMail2.PNGReport.PNGRelationships.PNG

  • calerof Profile Picture
    255 on at

    @SafeKeeping 

    Could you show the metadata of your tables? Does your Report Catalogue table has unique values?

    F

  • SafeKeeping Profile Picture
    6 on at

    @calerof I can. What details in particular?

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard