I have a dataset and I am grouping by several fields.
group by ta.vehicle_name, t.gl_account, t.batch_id, b.batch_type, t.transaction_comment;
I have two rows of data that share the above fields in common. The vehicle_name, gl_account, batch_id, batch_type, and transaction_comment are exactly the same. When I group by those five parameters to sum the amounts, I am still left with two rows. When I remove the transaction comment, the group by function works, and I am left with the sum amount for the two rows.
When I export the two rows to excel, I check to see if the transaction comments are duplicates and they are not. There are no leading or trailing spaces, and I did a format painter, but they are still not registering as the same even thought they appear identical.
I believe there is some underlying format in the data that got sent to Snowflake.
Any ideas?
I did this same group by with those five parameters and it was successful for millions of rows of data. This is the only one that I caught an issue with.