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 August 31st. Request your voucher.
Hi,
I'm new to PowerBI/DAX and not sure why I'm getting the syntax message after creating a new measure and starting to create a vairable.
Not sure why this happens straight away. I haven't used any curly brackets which was the issue with another user that had the same message.
Don't understand why I'm getting this message. Any idea's?
Solved! Go to Solution.
Hi @Rashidb84,
Please try adding RETURN LastMove_ to the end of the statement.
FlagZERO =
VAR LastMove_ = SELECTEDVALUE(ME2N_in_YSPOcombined[Last move])
RETURN LastMove_
Hi @Rashidb84,
Please try adding RETURN LastMove_ to the end of the statement.
FlagZERO =
VAR LastMove_ = SELECTEDVALUE(ME2N_in_YSPOcombined[Last move])
RETURN LastMove_
Hi KhaiT,
Thank you very much!!!
I just tried it and adding the Return function indeed make the error go away.
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |