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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mohittimpus
Helper V
Helper V

Code is correct -- Stil Dax give the error message "The syntax for '.' is incorrect."

Dax dont have any red line shoiwig but give message that "The syntax for '.' is incorrect." and past full Dax code.

 

I have share work file where this bix code write please help me to find that error.  

 

https://1drv.ms/w/s!AswA2ZDrJCDcyFWFYE7gI_ovutD2?e=IYg10L

 

Screenshot_7.jpg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mohittimpus , Avoid using a variable like spendMovers.com_Today_LM 

. in variable name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mohittimpus , Avoid using a variable like spendMovers.com_Today_LM 

. in variable name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
kentyler
Solution Sage
Solution Sage

The way to find this error is to reduce your measure to the code that develops the first VAR... run that (you will have to add a RETURN statement that returns the VAR) and see if you get the error. If you do, the error is in that small segment of code.
Then add the code that develops the second VAR (and change the RETURN). See if the error is in the second VAR block... keep doing that all the way to the end, and sooner or later you will find the block that has the error..... it should then be a lot easier to see what is wrong.

 

 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors