You can definitely set this up. I attached a screenshot of a hypothetical scenario where AppGroup and AppId must be unique in combination. For my example, as a condition I chose to check business rule whenever there is a change on either
of the fields (OR). You may omit the condition altogether if you like. Action is "must be unique" and in action properties there is an option to make an attribute unique in combination with another attribute (or multiple attributes).