Number of unique combination source

source: alteryx weekly challenge 88

sort the item with groups → concatenate → count the unique