@Abrar Adil S Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
Based on above shared information, we have understood that you are trying to pull the usage report based on the resource type under a particular subscription using HTTP
trigger and by creating a CSV table and post that sending the table as .csv file as an attachment in the email.
To reproduce this behavior, we have created a consumption logic app with the below set of actions and triggers.
Here is the sample output for your reference:
Below are the expressions that we have used in Compose action and Create CSV Table action in our workflow.
Compose action:
"@body('Parse_JSON')?['properties']?['rows']"
Create CSV table :
PreTaxCost: @item()?[0]
BillingMonth: @item()?[1]
ResourceType:@item()?[2]
Currency:@item()?[3]
For more information, you can refer to this documentation, on how customize your CSV table in logic apps.
Feel free to reach back to me if you have any further questions on this.