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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
bradleyteoh
New Member

Couldn't load the data for this visual MdxScript(Model) (8, 40) Failed to resolve name 'SYNTAXERROR'

There is no issue when i view my charts in PowerBI desktop, however error happens in PowerBI service. It was working fine previously.

 

The error message:

MdxScript(Model) (8, 40) Failed to resolve name 'SYNTAXERROR'. It is not a valid table, variable, or function name.

 

bradleyteoh_0-1713495560413.png

 

1 ACCEPTED SOLUTION
bradleyteoh
New Member

It was my DAX measure syntax!
I used VAR FUNCTION which might get confused with actual function names in DAX. Just need to change VAR FUNCTION to some other name.

View solution in original post

1 REPLY 1
bradleyteoh
New Member

It was my DAX measure syntax!
I used VAR FUNCTION which might get confused with actual function names in DAX. Just need to change VAR FUNCTION to some other name.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors