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! Request now

Reply
Anonymous
Not applicable

Error: Unable to convert an M query...

Hi all,

I'm having a dataset connected to a SQL Server/Direct Query and until today everything worked fine. Today, when I opened the advanced query of the one table, I received the following error: 

MicrosoftTeams-image.png

 

 

 

 

 

 

If I try to make any changes to the dataset,even a simple calculation, the dataset can't be published/refreshed successfully to PBI Service.

Any ideas?

Thank you.

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please open the Power Query Editor, click the FactTasks table, check the applied steps on the right.

 

error1.jpg

 

Keep only the first and second steps. Then close and apply, check the visual again.

 

It may be that Direct Query does not support some of your conversions.

 

If it doesn’t meet your requirement, could you provide more screenshots in detail?

 

Best regards,

 

Community Support Team _ zhenbw

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

View solution in original post

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please open the Power Query Editor, click the FactTasks table, check the applied steps on the right.

 

error1.jpg

 

Keep only the first and second steps. Then close and apply, check the visual again.

 

It may be that Direct Query does not support some of your conversions.

 

If it doesn’t meet your requirement, could you provide more screenshots in detail?

 

Best regards,

 

Community Support Team _ zhenbw

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

amitchandak
Super User
Super User

@Anonymous , What are the changes you have done to FactTask3?

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
Anonymous
Not applicable

Hi @amitchandak,

We make a few data tranformations in Fact Tasks (3) - like unpivoting, column duplicate, filtering data our, etc. 

 

Up until now, we did not have any issues neither making additional changes to the dataset nor refreshing it online.

 

Now we tried to add a new measure field with IF('Time'[Date]=TODAY()-1,"Yes","No") calculation in another table (not Fact Tasks (3)) and there is the mistake.

 

Also, now I have this warning in all the tables in Advanced Query:

MicrosoftTeams-image (1).png


Thank you.

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