@yeooandyni Apologies for the delayed response, for the above mentioned requirement below expression should help -
IIF([Company]="company1",JOIN("@",[UserID],"company1.com"), IIF([Company]="company2",JOIN("@",[UserID],"company2.com"),IIF([Company]="company3",JOIN("@",[UserID],"company3.com"),JOIN("@",[UserID],"company1.com"))))
Although, for this scenario using switch is recommended as it is easier to maintain, example:
Switch([Company], Join("",[UserID],"@company1.com"),
"company2", Join("",[UserID],"@company2.com"),
"company3",Join("",[UserID],"@company3.com"))
Let me know if you have any further questions, feel free to post back.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.