Total Cost by Product Name and Operation| tstats `aws-data-model-acceleration` sum(detailed_billing.BlendedCost) as Cost FROM datamodel=Detailed_Billing where $monthSpl$ (detailed_billing.LinkedAccountId=$accountId$) by detailed_billing.ProductName detailed_billing.Operation | rename detailed_billing.ProductName as "Product Name", detailed_billing.Operation as Operation
| sort -Cost
| fieldformat Cost=tostring(round(Cost, 2),"commas")
| eventstats sum(Cost) as total
| fields - total0
detailed_billing?form.billingAccountId=$accountId$&form.totalcost.groupby=Operation&form.totalcost.groupby=ProductName