Survey Tabulation > Advanced expressions > Operators > Categorical set logic > Subtract
 
Subtract
The subtract (-) operator returns the categories that are in the category list on the left but not in the category list on the right. The category order from the category list on the left is maintained above the category list on the right.
Examples
Result
{5,2,1,8,6} - {1,5,3,9,7}
{2,8,6}
{FOSSILS, BIRDS, WHALES} - {WHALES, BIRDS, FOSSILS}
{ }
{FOSSILS, BIRDS, WHALES} - {MINERALS, ECOLOGY, BIRDS, FOSSILS}
{WHALES}
See also
Categorical set logic