I am trying to Aggregate multiple rows using the Summarize tool.
My data looks like this :
I want to group by P1 and M1 and want to take the last not-null value in the columns containing D1, D2 and D3.
When I use the summarize tool, I group on P1 and M1 and pick the last value for each of the D-columns.
What I want is :
What I am getting is :
I think what might be happening is that the summarize tool is picking up the last value of the other D-columns as null and giving me the result accordingly.
Also, the D-fields are string fields and thus I cannot use the Max operation.
Is there a way to pick the last non-null value for the columns ?
I understand that I can summarize the individual columns and join them with the rest of the columns but it does not seem like a good approach to me as I have a sufficiently large number of columns to run the operation on.
Thanks.