Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
When I tried to create a new VAR in a new measure, the DAX prompt a sytax error "The syntax for ')' is incorrect (DAX(VAR))."
The problems:
1. there is no ')' after the VAR.
2. the error occurs for any VAR I created, even in a seperate .pbix file.
3. It used to be fine, but when I saved a file with DAX equations not finished, then all the .pbix files are affected.
It seems that the parser error in one measure spread to all the .pbix files.
Does anyone solved such issue before?
syntax error
Solved! Go to Solution.
Hi @zhxj ,
Is that the whole of your measure? If so that is incomplete. The syntax of a measure/calc column or table with variables should be something like
Name =
VAR VariableName1 = <expression>
VAR VariableName2 = <expression>
RETURN
VariableName or Expression
Hi @zhxj ,
Is that the whole of your measure? If so that is incomplete. The syntax of a measure/calc column or table with variables should be something like
Name =
VAR VariableName1 = <expression>
VAR VariableName2 = <expression>
RETURN
VariableName or Expression