cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gdorm
Frequent Visitor

Filtering Data From Multiple Data Sets

Hi! I'm fairly new to PowerApps and not sure if what I would like is a possibility. 

 

I want to retrieve distinct names from dataset A : colApp. However, I also want to add an additional filter from another data set(let's say dataset B for this example. The two data sets have column 'Plant #' that have the same data and can be used as the foreign key. Essentially, my dropdown results should only show Names where Approver.Email = varEmail in colApp (dataset A) and status = "confirmed" in dataset B. 

 

Currently this is my distinct function on data set A. This works fine. 

Sort(

     Distinct (

    Filter(

        colApp,

        Approver.Email = varEmail ),

        Name)

    ,

    Result

)

 

Here is my second filter on dataset B. I'm not sure how to incorporate it into the first filter. 

Filter ('Inventory_Updated', EditorStatus = "COMPLETED") 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Gdorm ,

 

Please try:

Sort(
     Distinct (
       Filter(
           colApp,
           Approver.Email = varEmail &&
           Name in Filter ('Inventory_Updated', EditorStatus = "COMPLETED").Name
       ),
      Name),
     Result
)

 

Best Regards,

Bof

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

i guess:

Sort(

     Distinct (

    Filter(

        colApp,

        Approver.Email = varEmail && Filter ('Inventory_Updated', EditorStatus = "COMPLETED")  ),

        Name)

    ,

    Result

)
v-bofeng-msft
Community Support
Community Support

Hi @Gdorm ,

 

Please try:

Sort(
     Distinct (
       Filter(
           colApp,
           Approver.Email = varEmail &&
           Name in Filter ('Inventory_Updated', EditorStatus = "COMPLETED").Name
       ),
      Name),
     Result
)

 

Best Regards,

Bof

v-bofeng-msft
Community Support
Community Support

Hi @Anonymous ,

 

Is the problem solved? Do you need any help?

 

Best Regards,

Bof

Anonymous
Not applicable

@Gdorm is the owner of this topic

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,830)