'Kusto dynamic table union (append if variable flag is set) [duplicate]

is the following logic possible in Kusto:

let flag = True;

let view = {

Table1
if flag:
| union
Table2

};

Thanks,



Solution 1:[1]

see: Kusto, Performing operations based on a condition

union (function1 | where flag), (function2 | where not(flag))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fabian