When using the Build Query option in WPBakery Page Builder you will want to filter your Portfolio or Shop items by category, the Categories field won’t work if you want to filter the items by category so what you need to do is type in the Taxonomies field instead of categories.
On this image we will try to explain the options that you can find in the Build Query area: