Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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.

Categories:
  • SafeKeeping Profile Picture
    6 on at
    Re: Gallery Lookup filters all records

    @calerof I can. What details in particular?

  • calerof Profile Picture
    255 on at
    Re: Gallery Lookup filters all records

    @SafeKeeping 

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

    F

  • SafeKeeping Profile Picture
    6 on at
    Re: Gallery Lookup filters all records

    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
    Re: Gallery Lookup filters all records

    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
    Re: Gallery Lookup filters all records

    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
    Re: Gallery Lookup filters all records

    Hi @SafeKeeping,

    Try making your relationships:

    ReportSubscribed *-1 User

    ReportSubscribed *-1 Report

    Cheers,

    Fernando

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics