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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EmaVasileva
Helper V
Helper V

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 @EmaVasileva ,

 

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 @EmaVasileva ,

 

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

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.