"index=azure_cost_management earliest=-1mon@mon latest=@mon | eventstats sum(CostInBillingCurrency) as PreviousMonthActualCost | head 1 | table PreviousMonthActualCost, SubscriptionName | join type=inner SubscriptionName [| inputlookup MyAzureSubscription-forecast_cost.csv | stats sum(Cost) as CurrentMonthForecastCost by SubscriptionName | table CurrentMonthForecastCost, SubscriptionName] | eval Difference=PreviousMonthActualCost - CurrentMonthForecastCost | table PreviousMonthActualCost, CurrentMonthForecastCost, Difference,SubscriptionName" Here Actual Cost and Forecast Cost are retrieved using Different APIs from Azure Cost Management
... View more