Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Merge & Sum Rows in Transform Data based on Multiple Criteria

So I have this table with locations named with IDs. Each ID can have data from multiple years, and multiple metric types. I want to merge and sum all the Water + Irrigation rows with matching ID/Year...
  • jgeddes's avatar
    3 years ago

    My suggestion would be to replace Irrigation as Water using replace values and then group by ID, Year and Metric Type, summing the January Use row. You can add in an index column after if it is needed.