Hi @v-litu-msft
I tried the solution above but i am getting error The variable 'Array' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'Array' only supports values of types 'Array'.
i initialised the variable Array with below value:
[
{
"Product Name": "Delta",
"Year-1": variables('ProductsArrayY1')[0],
"Year-2": variables('ProductsArrayY2')[0],
"Year-3": variables('ProductsArrayY3')[0],
"Year-4": variables('ProductsArrayY4')[0],
"Year-5": variables('ProductsArrayY5')[0]
},
{
"Product Name": "Zeta",
"Year-1": variables('ProductsArrayY1')[1],
"Year-2": variables('ProductsArrayY2')[1],
"Year-3": variables('ProductsArrayY3')[1],
"Year-4": variables('ProductsArrayY4')[1],
"Year-5": variables('ProductsArrayY5')[1]
},
{
"Product Name": "Atos",
"Year-1": variables('ProductsArrayY1')[2],
"Year-2": variables('ProductsArrayY2')[2],
"Year-3": variables('ProductsArrayY3')[2],
"Year-4": variables('ProductsArrayY4')[2],
"Year-5": variables('ProductsArrayY5')[2]
}
]

