This question has been flagged

If one wants to group a model by a date, it is possible to specify the interval (year, quarter, month...) by doing field_date:year, field_date:month

But: How to do this with a float field? I have values such as [6.3, 6.5, 8.2, 8,6, 11]. I want to group them in an interval of 2. So I have the classes 6.0-8.0: [6.3, 6.5],  8.0-10.0: [8.2, 8.6], 10.0-12.0: [11].
This classes should be shown in the list view of my model, if I create the filter such like that: field_float:2.0.

How is it possible to realize it?

Avatar
Discard