Dec 22 2017
12:32 PM
- last edited on
Apr 07 2022
04:50 PM
by
TechCommunityAP
Dec 22 2017
12:32 PM
- last edited on
Apr 07 2022
04:50 PM
by
TechCommunityAP
I'm trying to move some logic out of the main query into a lambda so the main query is easier to read.
So I want to take logic like this:
```
And I'd like to move the `iif` logic into a lambda:
```
Dec 24 2017 12:19 PM
Hi,
The following query is working for me:
let translate_path = (operation_Name:string)
{
iif(operation_Name == '/', 'home', 'other')
};
AzureActivity
| take 10
| extend path_Label = translate_path(OperationName)
Hope it helps,
Meir