Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a view which is returning a bunch of rows where each row contains two integer values. One value is consistent across all rows and the other varies, for example...
answer:5, guess:2
answer:5, guess:4
answer:5, guess:8
In this example I need to somehow return the row with the closest value for guess, to the value for answer. So here it would be the second row. If there are multiple rows which are the closest (eg 2 rows with guess:4) it would return both of them.
Is this possible with views?!
Comments
Comment #1
casaran CreditAttribution: casaran commentedLook for something like this module:
https://drupal.org/project/customfilter
Comment #1.0
casaran CreditAttribution: casaran commentedupdating typo
Comment #2
MustangGB CreditAttribution: MustangGB commented