Forum Discussion
Anonymous
3 years agoNot applicable
The syntax for ')' is incorrect.
I've searched for this and the typical suggestion is that the Return is needed. I'm using this in a new column, does it need to be a measure? What is the issue? I need to have a few of these but f...
unicorns
3 years agoHelper II
Hi GQ,
Can you try returning the variable you have created?
TestReq =
var CHAG = RELATEDTABLE(CHAGAS)
RETURN CHAG
You can define a variable in any DAX expression by using VAR followed by RETURN. In one or several VAR sections, you individually declare the variables needed to compute the expression; in the RETURN part you provide the expression itself (Source: SQLPBI)
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, and Kudos 👍 are very much appreciated!
- YJ