Solved - MdxScript(Adventure Works) (6, 11) Parser: The syntax for ';' is incorrect.

Problem:

When I try to deploy a project with a KPI defined, I get an error: MdxScript(Adventure Works) (6, 11) Parser: The syntax for ';' is incorrect.

Initially, I thought maybe there is a syntax error on the defined KPI value, goal, status, or trend. 


Go to the Calculation tab, I see the double ';;'. That's why. Delete the extra one.

/*
The CALCULATE command controls the aggregation of leaf cells in the cube.
If the CALCULATE command is deleted or modified, the data within the cube is affected.
You should edit this command only if you manually specify how the cube is aggregated.
*/
CALCULATE;;