This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
The solution from @JosephSerpis is close, but it fails if you include field types other than numeric types. This is because the Crosstab tool needs to be reconfigured if the Values column contains anything other a number. You can get around this by joining with the original data on RecordID instead of using a CrossTab. The J output has the Unique records from the original data set and the R output contains the duplicates
The macro below will summarise on all fields and return your data back to its original schema so you can use the macro in the middle of your workflow if needed with no issues, therefore should be exactly what you're looking for, if this solves your issue please mark the solution as correct, if not let me know!
Since you're using a Crosstab to rebuild your data instead of just using the record ids to join to the original data, you'll have problems if the original column names have spaces or non alpha-numeric characters in them.
Thanks a lot for suggestions, @JosephSerpis ,@danilang It includes _ in column names. All my inputs are Excel based and it contains all type of characters. Just to avoid this, I have to do lot of process. Is there any other method using macro?
@Jonathan-Sherman - Well highlighted. Looks like we don't have simple solution for Dynamic fields.
The solution I provided handles all field types(with the possible exception of blobs) and doesn't have the underscore issues since it doesn't perform a crosstab to rebuild the data. Try it out on your data and let me know. Converting it to a macro would simply involve changing the input and browse tools to a macro input and a macro output.
I think I've got to the bottom of it, unless @danilang can see any other issues? It changes the column headers back to their values prior crosstab. Attached is my updated macro. If this solves your issue please mark the solution as correct, if not let me know!