Query Details
let _KnownTables =
Usage
| where TimeGenerated between (ago(31d) .. ago(1d))
| distinct DataType;
Usage
| where TimeGenerated > ago(1d)
| where DataType !in (_KnownTables)
| summarize
FirstSeen = min(TimeGenerated),
TodayMB = round(sum(Quantity), 2),
IsBillable = max(IsBillable)
by DataType
| extend
TablePlan = iff(IsBillable == true, "Analytics (Billable)", "Auxiliary/Free"),
EstDailyCostUSD = iff(IsBillable == true, round((TodayMB / 1024.0) * 2.76, 2), 0.0)
| project TimeGenerated = now(), DataType, FirstSeen, TodayMB, TablePlan, EstDailyCostUSD
This query is designed to analyze data usage over the past day and identify any new data types that have appeared in the last 24 hours, which were not present in the previous 30 days. Here's a simplified breakdown of what the query does:
Identify Known Data Types:
DataType) from the Usage table that were recorded between 31 days ago and 1 day ago.Filter Recent Data:
Usage table for the last 24 hours (TimeGenerated > ago(1d)) and filters out any data types that are already in the list of known data types.Summarize New Data Types:
FirstSeen: The earliest time this data type was recorded in the last 24 hours.TodayMB: The total quantity of data for this type, rounded to two decimal places.IsBillable: Whether the data type is billable or not.Classify and Estimate Cost:
Project Results:
In essence, this query helps identify and analyze new data types that have started appearing in the last day, providing insights into their usage and potential costs.

David Alonso
Released: April 8, 2026
Tables
Keywords
Operators