Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Rashidb84
Resolver I
Resolver I

The syntax for ')' is incorrect. getting this message straight away when creating a measure

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.

Rashidb84_0-1707734023380.png

 

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?

 

1 ACCEPTED SOLUTION
KhaiT
Frequent Visitor

Hi @Rashidb84,

 

Please try adding RETURN LastMove_  to the end of the statement.

 

FlagZERO = 

VAR LastMove_ = SELECTEDVALUE(ME2N_in_YSPOcombined[Last move])

RETURN LastMove_

 

View solution in original post

2 REPLIES 2
KhaiT
Frequent Visitor

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.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)