File selection using Builder

Started by tvi55, April 05, 2018, 02:16:54 PM

Previous topic - Next topic

tvi55

From the following category tree I want to select all files which do not belong to any of the subcategories "sample-n", but to the main category "sample" only.

- Sample
- Sample / Sample-1
- Sample / Sample-2
- Sample / Sample-3

Using the Builder, this is possible with the following logic:   

Sample
NOT Sample / Sample-1
NOT Sample / Sample-2
NOT Sample / Sample-3

However, with many subcategories this gets cumbersome. Is there a shortcut possible saying "exclude all files from any of the subcategories"?

An alternative to using the Builder achieving the same result would also be appreciated.

axel.hennig

Hi tvi55,

I think this can be done using "Direct assignments only" (under "Properties"). See attached screenshot.

Axel

Mario

Just use a @CatNoRecurse formula for that. This formula does not consider files in child-categories (similar to the "Direct Files Only" mentioned by Axel above).

The @Builder allows you to quickly combine categories with Boolean operations. But it does not support every advanced features of category formulas. See the IMatch help (search the help index for category formula) for a full list of all available formula expressions.

ubacher

My easy solution would be to display all files and filter for category Sample.
If you use a single + in front of Sample instead of the double ++ you will get your wanted result.