Hello!
I have a table with a Uniqueid, Date and Names.
I am creating a bot that runs every night and through the data action "RUN ACTIONS ON ROWS" select the duplicate values โโin the column names and same date and delete that row. I can't make the corresponding select. Any help is appreciated.
Regards
Here's a technique to explore:
CONCATENATE(TEXT[Date], [Names])
SELECT(Table[UniqueID], [_ROWNUMBER] = MAX(SELECT(Table[_ROWNUMBER], [New Column] = [_THISROW-1].[New Column]))
Also, consider whether there's a way to prevent adding any duplicate rows in the first place.
This method deletes all the records
Sorry I confused you with my draft expression. I see now that I wrote it to identify the unique rows. Try changing the equals (=) to not equals (<>) or else subtracting that list from the overall list of the table's rows.
No problem, I really appreciate your time.
Using the <> does not delete anything, I can't understand the second option you mention, could you guide me? I put the first expression that you comment with my data
SELECT(detalle_hora[uniqueid],[_ROWNUMBER]=MAX(SELECT(detalle_hora[_ROWNUMBER], [codigo_eliminar]=[_THISROW-1].[codigo_eliminar])))
detalle_hora[uniqueid] - your expression
User | Count |
---|---|
25 | |
25 | |
24 | |
21 | |
20 |