How to apply kusto function to each rows?

I am using kusto. I have a function and I want to use it for each row. I can call the function with | invoke <FUNCTION_NAME> but how can I apply to app rows ?

Upvotes: 1

Views: 4403

Answers (1)

Avnera
Avnera

Reputation: 7608

Use the "extend" operator

For example:

let f = view(a:int){
a*3
};
let t = datatable(a:int) [ 1,2,3];
t 
| extend b = f(a)
a b
1 3
2 6
3 9

Upvotes: 2

Related Questions