The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
181 | |
82 | |
63 | |
47 | |
43 |