Display only 1 document if there are many with same category

I have documents with a field called “Keyword”. In a view I want to display for each “Keyword” only 1 document and not all. e.g. 2 documents have keyword “Open” and 3 documents have keyword “Closed” I want to have the view filled with only 2 documents: 1 “Open” and 1 “Closed”. I tried several ways but did not succeed. A categorized column is NOT appreciated because I need to select the documents which is not possible if a use a categorized view. right ?

I tried also @Unique function but it seems that this function does not work in view formulas.

Does anyone have an idea how to do this just with view formulas (with extra code in the documents it would be possible to set a flag to the ‘first’ document of each keyword, but this is not the best idea, I think…)

thank you for all responses

@lex

Subject: Display only 1 document if there are many with same category

try using, on view’s properties, on the Advanced Tab, ODBC Access and check Generate unique keys in index although this might generate some other conflicts…so, be aware

Subject: RE: Display only 1 document if there are many with same category

hi alex (from alex to alex g),

YES - this works ! GREAT!

but: what other conflicts do you mean - what else should I check ?

Subject: RE: Display only 1 document if there are many with same category

well…there is nothing you should also check…but sometimes i’ve noticed a strange behaviour…but right now i can’t give you any example…