Range Aggregation using difference between 2 fields

I want to create a visualization where buckets must be created with range or a value(0-5, 5-10, 10-15).
This value is not available in a field but should be derived from difference between 2 fields.

Hey @Karthik2411, you can use a Scripted Field to calculate the difference, and then use this in a range aggregation:

Thank you so much for the reply @Brandon_Kobel . That helped me.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.