Question
Extract Unique Values from a Power BI JSON in Power Automate
I have the following JSON that comes from PowerBI (via the Power Automate button function)
[
{
"entity": {
"Power BI values": [
{
"G-DATEMO": 4,
"G-DATEQU": 2,
"G-DATEYR": 2024,
"G-PRODUCT": "Biscuit",
"G-BAKERY": "West",
"Year Quarter Name": "2024 Q2"
},
{
"G-DATEMO": 4,
"G-DATEQU": 2,
"G-DATEYR": 2024,
"G-PRODUCT": "Bun",
"G-BAKERY": "West",
"Year Quarter Name": "2024 Q2"
},
{
"G-DATEMO": 4,
"G-DATEQU": 2,
"G-DATEYR": 2024,
"G-PRODUCT": "Bun",
"G-BAKERY": "South",
"Year Quarter Name": "2024 Q2"
},
]
}
}
]
I want to extract only the UNIQUE items for G-PRODUCT and G-BAKERY listed if its possible in separate arrays
I have tried applying a "apply to each" in side another "apply to each" but just end up with the array being full of 'Apply_to_each_2"
Need to achieve this inside of Power Automate