ALTER TABLE SWITCH statement failed. Indexed view '%1!s!' is not aligned with table '%2!s!'. The partitioning column '%3!s!' ...

ALTER TABLE SWITCH statement failed. Indexed view '%1!s!' is not aligned with table '%2!s!'. The partitioning column '%3!s!' from the indexed view calculates its value from one or more columns or an expression, rather than directly selecting from the table partitioning column '%4!s!'. Change the indexed view definition, so that the partitioning column is directly selected from table partitioning column '%5!s!'.