Grouping and summing nested values

What are you trying to achieve?

Hello make.com community!

I am fairly new to make.com so please bear with me. I have a list of bundles here:

I’m trying to get the sum of the “Time” for each “Type” for each “Member” and i just get figure it out :confused:
And also would like to get the sum of the “Time” for each “Project” (under “Type” if possible) for each “Member”


Your help will mean alot to me thank you so very much in advanced!

Steps taken so far

I aggregated the time and group by member and project, i add a numeric aggregator but still couldn’t figure the right sum formula (tried both from the parse csv and the aggregator source module)

1 Like

Hi @Daniel_Rozenwald
You have got the logic of grouping element. You can use “numeric aggregator” module to get the sum by grouping. If you can share the output bundle of the csv file we could further assist you.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

Thank you @Msquare_Automation
The out bundle of my csv file is from the openai output module here it is:

If you can share the formula for the numberic aggregator to help me understand it properly?
i tried:
{{sum(get(map(12.array; “IMTKEY”; )))}}
{{sum(map(12.array; 12.__IMTKEY__))}}

but no output

If you need further assistance, please provide the following:

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
Here are some ways to provide text content in a way that it won’t be modified by the forum.

  • Method 1: Type code fence manually
    Add three backticks ``` in a separate line before and after the content, like this,

    ```
    text goes here
    ```
    
  • Method 2: Highlight and click the “preformatted text” button in the editor

  • Method 3: Upload your file and share the public link
    (this method is only recommended for large files exceeding the forum upload limit)

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

This will allow others to better assist you. Thanks!

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

Thanks for the quick reply @samliew here are the relevant output bundles:
(the report is much longer this is just a small sample)

OpenAi Module :
openai bundle.txt (2.0 KB)
Parse CSV Module :
parse csv bundle.txt (1.1 KB)
Array Aggregator:
array aggregator.txt (694 Bytes)

I want to sum Time for type for each Member
and also the Time for Project (under Type) for each Member
Couldn’t figure out the formula to the numeric aggregator

Thanks again