Hi danielf16493531I believe the provided solution works perfectly for the desired use case, maybe needs some testing/adjustments regarding the number.assume you have a single visit where user searches 3 times for "madrid", twice for "barcelona", that would be "2 different values" for the "city_comb...