This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi All - I am trying to apply a filter in Data Transform, and now I don't know how to escape to the previous page after receiving this error: Expression.SyntaxError: Token ',' expected. Obviously undo doesn't apply here.
Solved! Go to Solution.
Hi,
in der Regel wird der Fehler auch markiert. Beispiel:
Im Erweiterten Editor auf Fehler anzeigen klicken und es wird die Fehlerstelle vor dem Fehler so markiert (wie im schwarzen Rechteck gezeigt, also grau hinterlegt):
oder in der Einzelschrittanzeige so:
...mit Wellenlinie unterstrichen.
In beiden Fällen fehlt das Komma vor dem Schlüsselwort each.
Manchmal ist die Anzeige etwas verwirrend, besonders dann, wenn das abschließende Komma im vorhergehenden Schritt fehlt und der Fehler deshalb erst in der Folgezeile angezeigt wird (weil der Fehler davor moniert wird). Das solltest Du auch mal checken.
@mig66
Expression.SyntaxError: Token ',' expected...
This is a common syntax error in Power Query (M language). It means Power Query was expecting a comma (,) at a certain point in your code but didn't find one.
powerquery does not have an undo option, but you can go back and forward using the applied steps list.
If you need more info about the applied steps list: Please go to https://learn.microsoft.com/en-us/power-query/applied-steps
Hello @mig66,
We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.
Thank you.
Hi @mig66,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @Omid_Motamedise, @pcoley & @ralf_anton for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.
@mig66
Expression.SyntaxError: Token ',' expected...
This is a common syntax error in Power Query (M language). It means Power Query was expecting a comma (,) at a certain point in your code but didn't find one.
powerquery does not have an undo option, but you can go back and forward using the applied steps list.
If you need more info about the applied steps list: Please go to https://learn.microsoft.com/en-us/power-query/applied-steps
Hi,
in der Regel wird der Fehler auch markiert. Beispiel:
Im Erweiterten Editor auf Fehler anzeigen klicken und es wird die Fehlerstelle vor dem Fehler so markiert (wie im schwarzen Rechteck gezeigt, also grau hinterlegt):
oder in der Einzelschrittanzeige so:
...mit Wellenlinie unterstrichen.
In beiden Fällen fehlt das Komma vor dem Schlüsselwort each.
Manchmal ist die Anzeige etwas verwirrend, besonders dann, wenn das abschließende Komma im vorhergehenden Schritt fehlt und der Fehler deshalb erst in der Folgezeile angezeigt wird (weil der Fehler davor moniert wird). Das solltest Du auch mal checken.
On your code, at the line related to Gefilter....., before each expression (highlighted in error by ^^^ at the bottom) add a comma
Hi @mig66 ,
Could you share the Power Query M code from the Advanced Editor? That'll help us spot the syntax issue quickly.
In Power Query Editor → Home → Advanced Editor — paste the full code here and we can pinpoint exactly where the comma is missing.
Thanks!
Natarajan Manivasagan
If you found this helpful, please consider giving it a Kudos and marking it as the accepted solution — it goes a long way in helping others facing the same issue.
🏆 Best Solution for Enterprise BI — 2026 Microsoft Fabric Semantic Link Developer Experience Challenge
👉 Microsoft announcement · View the winning notebook
For more Power BI tips and discussions, let's connect on LinkedIn.
Cheers!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 1 | |
| 1 |