Natygan Posted August 2 Share Posted August 2 Hello all, I'm preparing my data in the Data canvas section. In my table, I've got a column with the document number. My need is : if a specific document number appears on several rows, then I want to delete every row that has this specific document number. I assume that the easiest way to do this would be to add a column with the number of occurrences of a given document number in the table, and then add a "Filter rows" step to keep only the rows with the number of occurrences equal to 1. But I can't find how to do this. Is this even possible ? Thank you for any idea ! Nathalie. Link to comment Share on other sites More sharing options...
Solution Olivier Keugue Tadaa Posted August 2 Solution Share Posted August 2 Hi Nathalie, if we consider this table structure you can create a calculated column "occurrences" occurrences :::: Count([value]) over ([doc num]) and then filter to only show document numbers appearing only once I hope this helps 1 Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted August 2 Share Posted August 2 alternatively, you can use the "pivot" transformation from the data canvas (you should ensure you've selected the proper rows identifiers and applied the appropriate aggregation methods) 1 Link to comment Share on other sites More sharing options...
Natygan Posted August 2 Author Share Posted August 2 Thank you so much, Olivier, for this very quick and perfect answer !! :-) Have a nice day, Nathalie. 1 Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted August 5 Share Posted August 5 You are welcome, Nathalie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now