If you need to retrieve cost per Meter Category and Meter Sub Category you can do so via FlexReporting.
Find the following FlexReport stub that pulls Meter Category, Meter Sub Category, Resource ID, and Actual Cost in Billing Currency below, these fields can be changed as required this simply serves as a stub to get you started -
{
"sqlStatement": "SELECT timeInterval_Month AS Month, MeterCategory AS MeterCategory, MeterSubCategory AS MeterSubCategory, ResourceId AS ResourceId, SUM(ActualCostInBillingCurrency) AS SUM_ActualCostInBillingCurrency FROM AZURE_COST_USAGE GROUP BY timeInterval_Month, MeterCategory, MeterSubCategory, ResourceId",
"needBackLinkingForTags": true,
"dataGranularity": "MONTHLY",
"timeRange": {
"last": 3
},
"limit": -1
}To deploy the stub FlexReport please follow these steps: