Forum Discussion
VAR SYNTAX DAX , Please Help!
Hi Anonymous ,
Var is a variable, which is equivalent to storing the result of an expression. When you use it, the result will be released and passed to other measurement expressions as a parameter.
In your formula, although you use Var _Cash in Dax, you just store the result and don’t use it in the next formula, this caused Var _Cash to be ignored in the calculation process, and did not affect the formation of the final result.
And your Var _CashbyCustomer is used in the following formula, so Var _CashbyCustomer is not ignored in the calculation
Can you describe where Var _Cash is used or what specific role it plays in the formula.
This is the usage and explanation of Var:
https://docs.microsoft.com/en-us/dax/var-dax
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.