Forum Discussion

Fapo's avatar
Fapo
Frequent Visitor
8 years ago
Solved

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.

  • Anonymous's avatar
    Anonymous
    8 years ago

    After you have declared your variables you need to type RETURN in order for the calculation to proceed.

     

    Br,

    Magnus

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    After you have declared your variables you need to type RETURN in order for the calculation to proceed.

     

    Br,

    Magnus

    • Fapo's avatar
      Fapo
      Frequent Visitor

      Thank you very much, my friend.