Skip to main content
Community site session details

Community site session details

Session Id : UQ1kEZPIwqrZrutsNIieRk
Power Apps - Building Power Apps
Answered

Filter form or create a Collection in a Many to Many relationship directly in CANVAS

Like (0) ShareShare
ReportReport
Posted on 10 Jun 2022 16:33:32 by 7

I am using the Power Apps Canvas app…

 

I have been searching for an answer (with or without using Filter) for days.  Either it’s a brilliant and difficult question, it is an unsolvable problem (is the such a thing?), or I as dumb as a box of rocks! I am hoping it is the first one....

 

QUESTION:

I have:

FormA with 2 columns

FormB With 1 column

 

Form A has:

2 Columns Named:  CourseID & CourseTitle

It has 4 records in it

CourseID             CourseTitle

      1                       Course One

      2                       Course Two

      3                       Course Three

      4                       Course Four

 

Form B has:

1 Column Named:  CourseID

It has 2 records in it

CourseID

       2

       4

 

I wish to Create FormC.

FormC will should show only:

one column CourseTitle

with 2 records (the 2 IDs on FormB)

 

FormC result:

     CourseTitle    

    Course Two

    Course Four

 

FormC should show the CourseTitles (from FormA) but be filtered by only [all] the CourseIDs is present on FormB.

That is to say I wish to Filter FormC to show any and all the Course Titles that correlate to either of the records in FormB.

 

FormB could be a collection rather than a form but I believe I have the same issue.

For that matter both Forms A&B could be collections with FormC based on the result of the appropriate collection.

 

Either way, I’m trying to create a data set based on all records from a different data set (aka a Many to Many relationship)

 

NOTE:  I don’t have permissions to use such features as CDS or List Relationships, so please limit any answers to solving this problem using code within the Canvas app (if it is possible!)

 

Thanks for any and all help!

Categories:
  • Verified answer
    v-jefferni Profile Picture
    on 15 Jun 2022 at 07:32:18
    Re: Filter form or create a Collection in a Many to Many relationship directly in CANVAS

    Hi @Mark999 ,

     

    I may suggest a formula for your scenario first:

    Filter(ForAll(FormA As A, If(A.CourseID in FormB.CourseID, A.CourseTitle, ""), !IsBlank(CourseTitle))

     

    Best regards,

  • Mark999 Profile Picture
    7 on 10 Jun 2022 at 20:37:42
    Re: Filter form or create a Collection in a Many to Many relationship directly in CANVAS

    I do not have the rights in Teams to create any table relationships. However I figured out a way and will post that solution as soon as I have a chance.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 10 Jun 2022 at 18:42:51
    Re: Filter form or create a Collection in a Many to Many relationship directly in CANVAS

    @Mark999 

    To work with PowerApps, you need to construct the tables and relationships first.  The design will naturally flow when the tables and relationships are created.  In a Many to Many relationship (the classic example is Students and Courses), three tables will be required, the student list, the course list and a junction table between them that holds the primary keys of each of them. !1.png To try to build the app starting with the user interface, is like building a house from the roof down. 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete