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 / Dataverse delegation f...
Power Apps
Answered

Dataverse delegation for Bridge Table Filter Query

(0) ShareShare
ReportReport
Posted on by 62

I have a bridge table used to manage Many to Many relationships (DB_Lookups). The Bridge Table has 3 LookUp columns, one to People, one to Groups and One to Orders. This allows me to manage the relationships between People & Groups, Groups & Orders and Orders & People.

 

If I create a new Order and link it to People, the Groups column is Blank, if I Link People to Groups, the Order column is blank.

I've go a galley on an Order Page where I want to show the People linked to that order and use the LookUp table to do this and all works fine until I also have a Group associated with the Order is that record is also displayed as an entry is included in the LU_Order Column alongside the LU_Group (to make the relationship).

 

Filter(
    DB_Lookups,
    LU_Order.ORD_ID = var_OrderRecord.ORD_ID
)

To get around this, I tried  the following...

 
Filter(
    DB_Lookups,
    LU_Order.ORD_ID = var_OrderRecord.Ord_ID And !IsBlank(LU_Groups)
)
But get a delegation error on the "And !IsBlank(LU_Groups)" part of the filter.
 
How do I get around this to only show records where the Order_ID = the current record (held in the var_OrderRecord array) and there is no entry in the LU_Group column?
 
Do I need a separate LookUp table to manage each many-to-many relationship?
 
TIA
I have the same question (0)
  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Hi @ThomasRConnor ,

    Try

    Filter(
     DB_Lookups,
     LU_Order.ORD_ID = var_OrderRecord.Ord_ID And LU_Groups = Blank()
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • ThomasRConnor Profile Picture
    62 on at

    Unfortunately this doesn't solve the issue - I still get a delegation warning under the And & LU_Groups, but the = also gives an error as they are incompatible types for comparison . 

  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    @ThomasRConnor ,

    I will shift this over to the Dataverse forum - I am a SharePoint user

  • Verified answer
    ThomasRConnor Profile Picture
    62 on at

    Turned out to be a simple fix / error on my part.

     

     && IsBlank(ThisRecord.LU_Groups))
    Needed to add 'ThisRecord' to the query as it's in a gallery!!! D'oh.

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

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard