Hi Forum,
I have been reading a lot and found several similar post but with multiple arrays. In my case I'm looking for a Power Automate flow that have only one array that I want to clean and group based on a unique id.
My array: (every time 2 periods per unique id)
[
{
"id": "770",
"period": "2023-05",
"count": "12"
},
{
"id": "770",
"period": "2023-06",
"count": "13"
},
{
"id": "2027",
"period": "2023-05",
"count": "64"
},
{
"id": "2027",
"period": "2023-06",
"count": "72"
}
]
My expected result:
[
{
"id": "770",
"2023-05": "12",
"2023-06": "13"
},
{
"id": "2027",
"2023-05": "64",
"2023-06": "72"
}
]
Thank you very much in advance for the help
Cheers
Chris