Hi @Made_Enny - Welcome to AWS QuickSight community and thanks for posting the question. I will suggest to check the documentation of “if else” of QuickSight and try to replicate it. See the link below - Ifelse - Amazon QuickSight.
I agree with @neelay , share the error details so that community can help in fixing the error.
Regards - Sanjeeb