Less or equal (le, <=)
You can apply this operation either as a Filter or Create column operation:
Filters those events where a value is less than or equal to either another field of the same data type or a specified value.
Creates a Boolean column that shows true when a value is less than or equal to either another field of the same data type or a specified value.
How does it work in the search window?
Select Filter / Create column in the search window toolbar, then select the Less or equal operation. You need to specify two arguments:
|is less than or equal to (mandatory)||The same as the Value data type|
If you use the Create column operation, the data type of the values in the new column is boolean (true or false).
demo.ecommerce.data table, we want to get only the events with status codes that are less than or equal to 400. To do it, we will apply a Filter using the Less or equal operation.
The arguments needed for the filter are:
- Value - statusCode column
- is less than or equal to - Click the pencil icon and enter 400
Click Filter data and you will see the following result:
Click Create column and follow the same steps to add a new Boolean column that shows true when the values in the statusCode column are less than or equal to 400.
How does it work in LINQ?
Use the operator
where... to apply the Filter operation and
as... to apply the Create column operation. These are the valid formats of the Less or equal operation:
value1 <= value2
You can copy the following LINQ scripts and try the above example on the
from demo.ecommerce.data where statusCode <= 400
from demo.ecommerce.data where le(statusCode, 400)
And this is the same example using the Create column operation:
from demo.ecommerce.data select statusCode <= 400 as code_le_400
from demo.ecommerce.data select le(statusCode, 400) as code_le_400