Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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
  • Verified answer
    ThomasRConnor Profile Picture
    62 on at
    Re: Dataverse delegation for Bridge Table Filter Query

    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.
  • WarrenBelz Profile Picture
    146,991 Most Valuable Professional on at
    Re: Dataverse delegation for Bridge Table Filter Query

    @ThomasRConnor ,

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

  • ThomasRConnor Profile Picture
    62 on at
    Re: Dataverse delegation for Bridge Table Filter Query

    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
    146,991 Most Valuable Professional on at
    Re: Dataverse delegation for Bridge Table Filter Query

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics