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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Getting error Expression.SyntaxError:Token Eof expected

sush08gi_0-1724781442284.png

 

Not sure what is wrong with this query. Kindly advise. 

5 REPLIES 5
Anonymous
Not applicable

Thanks all. As mentioned by Greg and V-   there was "  missing before the select .... so I added that and in the end I also added
created_at", null, [EnableFolding=true])

This resolved the error

Anonymous
Not applicable

Hi @Anonymous ,

Agree with what @Greg_Deckler said, there's a problem with your M code, something is missing here:

vjunyantmsft_0-1724821977557.png

If you don't know how to modify your M code, you can try enabling the advanced options when connecting to a PostgreSQL database:

vjunyantmsft_1-1724822102172.png

Then, in the SQL statement, put the SQL query you used in the M code into it and connect it.

vjunyantmsft_2-1724822129703.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks all. As mentioned by Greg and V-   there was "  missing before the select .... so I added that and in the end I also added
created_at", null, [EnableFolding=true])

Greg_Deckler
Community Champion
Community Champion

@Anonymous Typically that should look like the following:

("localhost", "AdventureWorksDW2022", [Query="SELECT * FROM DimCustomer"])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks all. As mentioned by Greg and V-   there was "  missing before the select .... so I added that and in the end I also added
created_at", null, [EnableFolding=true])

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.