cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Croopadoop
New Member

Issue: ModelDrivenFormIntegration + Gallery with Two Filters

Hello,

 

I cannot find a solution to the following scenario and am looking for help.

 

I have three tables:

 

Table 1 = Location

Table 2 = Pricing Request

Table 3 = Pricing Location

 

The Pricing Location is a custom N:N relationship with three fields:

  • Location
  • Pricing Request
  • Pricing Location (Primary Key)

I have embedded a canvas app on the Pricing Request entity with the intention for users to create pricing locations easily and quickly. The Location and Pricing Request entities both have a required lookup to the Account table called Customer.

 

The following filter is not working in my embedded canvas app, and I cannot figure out why:

 

Filter(
     LookUp(
          'Pricing Requests',
          'Pricing Request' = [@ModelDrivenFormIntegration].Item.'Pricing Request'
     ).Customer.Locations,
     Not(
          Location in LookUp(
               'Pricing Requests',
               'Pricing Request' = [@ModelDrivenFormIntegration].Item.'Pricing Request'
          ).'Pricing Locations'.Location.Location
     )
)

 

Any ideas? Is this simply too complex of a query?

0 REPLIES 0

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,044)