SOLVED

unable to use let in log analytics query "No tabular expression statement found"

Microsoft

Creating a simple variable using let fails with "No tabular expression statement found" my code,

 

let myvar=4;

 

why can i not do this

5 Replies

@dahund79 Can you be more explicit? How are you using 'myvar' in the query?

Hey, i am not Really using it just trying to create a variable, for testing.
best response confirmed by dahund79 (Microsoft)

@dahund79 Simply declaring the variable will fail since it's not being used in a query. @CliveWatson 's example above shows how to potentially use the variable in a query. 

1 best response

Accepted Solutions
best response confirmed by dahund79 (Microsoft)