Hi,
I have document like this
{
bills: [
{
id: "1",
total: 20.0
},
{
id: "1",
total: 20.0
},
{
id: "2",
total: 10.0
}
]
}
I would like to do the DISTINCT SUM of total value with distinction based on id property but could not find and instruction for this case.
For the example case, the expected total is 30.0.
Thanks,
Chinh