I am trying to display all
s of
node. But I don\'t want to display duplicate entries of department
from
You need a second level of Muenchian grouping - you already have a key that finds unique company names, you now need a second key that finds unique company-department pairs:
This filters the list of all company
elements matching the current companyname
so you just get the first mention of each department
.