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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dpate46
Frequent Visitor

The following syntax error occurred during parsing: Invalid token, Line 1, Offset 121, ​.

I am not sure how to fix this error. Please Help.

dpate46_0-1661376002240.png

All I am trying to do is to fetch the max date from column "opendate" where the column "credited_branch" is not equal to "00000". Please let me know if there is an alternative way to achieve it with DAX. Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dpate46 , Should have worked

 

Try like

calculate(Max(Table[opendate]) , filter(Table, Table[credited_branch] <> "00000" ) )

View solution in original post

3 REPLIES 3
h11
Helper I
Helper I

@amitchandak 

I'm facing the similar error on my power Bi when I'm trying to type a measure. The error is "The following syntax error occurred during parsing: Invalid token, Line 5, Offset 46,. Please help.

 

h11_0-1715175233115.png

Thank you!

h11
Helper I
Helper I

@amitchandak I'm facing the similar error on my power Bi when I'm trying to type a measure. The error is "The following syntax error occurred during parsing: Invalid token, Line 5, Offset 46,. Please help.

 

h11_0-1715175233115.png

Thank you!

amitchandak
Super User
Super User

@dpate46 , Should have worked

 

Try like

calculate(Max(Table[opendate]) , filter(Table, Table[credited_branch] <> "00000" ) )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors