This code:
let myvar = Usage| where IsBillable == true| distinct DataType;
throws an error
no tabular expression found
This code:
let myvar = Usage| where IsBillable == true| distinct DataType;
throws an error
no tabular expression found
let
is used for Ad-Hoc definitions, in a query's scope.
Your code does not contain a query, only a let
statement.
You can use it as following:
let myvar = Usage | where IsBillable | distinct DataType;
myvar
P.S.
IsBillable == true
can be shortand to IsBillable