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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
New Member

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
New Member

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.