Hi @shabrez
Pls change the type of variable from "Object" to "array" to solve the issue.
Alternatively, you could have done without apply to each action by directly passing the output from power bi action into the "Create CSV table" action. In "Create CSV table" action, you could have selected "Custom" in 'Columns' parameter and set the header text and enter values in the form of expressions.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.