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: .
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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/30/15, 4:54 AM|
|Seen: 314 times|
|Last updated: 11/30/15, 4:54 AM|