I was making an app which required partitioning based on the domain of the user email and initially struggled to create the correct expression. The following is a neat little expression that can be used not only for partitioning but for any formula which you want to return the user email domain:
INDEX(SPLIT(USEREMAIL(), โ@โ), 2)