Hi , @sam123123123
Thanks for your response! For example , this is an test array created by the "Initialize variable":
[
{
"Document Date": "2023/02/12",
"Due date": "2023/02/20",
"Balance": 100,
"0-30": 150,
"31-60": 120
},
{
"Document Date": "2023/02/13",
"Due date": "2023/02/21",
"Balance": 50,
"0-30": 120,
"31-60": 320
},
{
"Document Date": "2023/02/14",
"Due date": "2023/02/22",
"Balance": 120,
"0-30": 250,
"31-60": 220
}
]

This is my test flow:

xml(json(concat('{"root":{"item":',variables('DataTest') ,'}}')))
xpath(outputs('Compose'), 'sum(/root/item/Balance)')
xpath(outputs('Compose'), 'sum(/root/item/_x0030_-30)')
xpath(outputs('Compose'), 'sum(/root/item/_x0033_1-60)')
union(outputs('Compose_2'),variables('DataTest'))
And you need to test it in your side and replace the action name and the field name in your side.
Best Regards,
Yueyun Zhang