Forum Discussion
Fapo
8 years agoFrequent Visitor
Weird Parentheses Error
Hello. I am working on DAX, and want to define three variables and then sum all of them. Here is my code:
/*VARIABLE DEFINITION*/ VAR ventashrs=SUM(UTILIDADES[Ventas Waldbott HORAS]) VAR ventasprod=SUM(UTILIDADES[Ventas Waldbott SOFT]) VAR ventasmod=SUM(UTILIDADES[Ventas. Mod.]) /*FORMULA*/ ventashrs+ventasprod+ventasmod
I am getting a weird "The syntax for "(" is incorrect" error for apparently no reason. I checked the formula several times. What am I missing?
Thanks in advance.
- Anonymous8 years ago
After you have declared your variables you need to type RETURN in order for the calculation to proceed.
Br,
Magnus
2 Replies
- AnonymousNot applicable
After you have declared your variables you need to type RETURN in order for the calculation to proceed.
Br,
Magnus
- FapoFrequent Visitor
Thank you very much, my friend.