Back in 2011 I posted this illustration in Displaying entries categorised:

You simply add a certain pattern of the Dataform select (menu) field and it displays the value only once. And you can have sub-categories with further select fields.
Per chance, I'm revisiting this feature for the new version of the Dataoform.
May not be useful for you as this is, or rather was, a feature of the Dataform select (menu) field. But for what it's worth ...