cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SamGibbs
Helper III
Helper III

Unmatched records query in PowerApps

Hi all,

 

I am trying to build some data checking tools into an app. I want to be able to find records that are missing data. Within one datasouce (they are all SharePoint lists) I can make a collection and filter it to display records where a column is missing data.

 

I am stuggling to replicate this across multiple lists - so asking to show all records from datasource 1 which do not have a matching record in datasource 2. Is anyone able to point my in the right direction for this?

 

Thanks,

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @SamGibbs ,

Do you want to replicate data across multiple lists and filter out the not matching record in datasource1?

If so, you need a unique field, which could be used to justify whether there's matching record.

I assume as Title field is the special field.

Then you could use formula like this to filter:

Filter(datasource1,Not(Title in datasource2.Title))

You will get records that do not have matching Title value of data source2 in data source1.

 

 

Best regards, 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @SamGibbs ,

Do you want to replicate data across multiple lists and filter out the not matching record in datasource1?

If so, you need a unique field, which could be used to justify whether there's matching record.

I assume as Title field is the special field.

Then you could use formula like this to filter:

Filter(datasource1,Not(Title in datasource2.Title))

You will get records that do not have matching Title value of data source2 in data source1.

 

 

Best regards, 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi

 

Thanks for the pointer - that didn't quite work as I needed some extra guidance, but I found this https://powerusers.microsoft.com/t5/Building-Power-Apps/Filter-a-collection-to-exclude-items/m-p/251... which resolved it (it also got rid of the delegation issues).

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (3,892)