
Hi all,
I currently have a Powerapp setup at work that i use for storing rather large ammounts of data.
My colleague called me today asking me to create a way of searching for any records that have been duplicated, as there are different people who input into the app.
So I've tried to setup a new page with a basic gallery on to show all duplicate records. However I cant seem to work out the formula for this.
Anyone have any ideas?
In theory you should use the GroupBy function and then count if you get more than 1 row in the final column.
Unfortunately GroupBy is not yet delegated so it will only work for sources of up to 500 records.
How may records do you have?
A much better approach, however, would be prevent duplicate records being created in the first place. In order of preference you could:
1) Set up indexing and uniqueness in the data source if this is possible (yes for SQL Server, no for CDS at the moment)
2) At the moment of data input check if an identical record exists in the data source before patching the new record, and do not patch if it exists