Producing JSON Output that sums rows from Excel by Person

:bullseye: What is your goal?

To sum Excel records by person and produce a JSON output

:thinking: What is the problem?

The scenario has the Excel module which retrieves the records from an excel file. It contains payroll data that has hours worked on given days for employees. I would like to produce a simplified output the sums the total hours and pay by employee, so instead of having 50 rows for an employee it has the total. I’m looking for an equivalent of sumif in Excel or the Group by option in Power Query but I can’t work out how to do this.

Is this possible?

:test_tube: What have you tried so far?

I’ve tried the Group By option in the Aggregate to JSON module but it doesn’t produce an output so I’m not sure I’m using it correctly

Hey Ian,

why not do this directly in Excel though?

You need a Sum aggregator set to group by employee.

Hi Stoyan

Thanks for the reply. The fie is retrieved from a client site, so having the data in Make is the first time we see it.

I’ve tried using the Group By option on the Aggregate to JSON module (the data is sent via an API call to another application, hence the JSON) as below:

However this doesn’t produce an output, not sure I’m using it correctly?

Thanks,

Ian

This looks correct y ah. What are you getting as input and output? Can you show some screenshots?

Here’s the input to the JSON module, I bundle equals 1 record of data:

The “employeeNo” field in the JSON data structure is where we’ve mapped the {{36.row.b.value}} to, which is what I need to Group By.

However I get no output:

Actually it has produced an output now!

Not sure what I was getting wrong before