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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sfowers
New Member

Converting from DirectQuery to Import doesn't complete

1 - Create new BI

2 - Add a Local SQL Server datasource in DirectQuery mode

3 - Navigate to a table

(Apply changes here)

4 - Add a custom datetime column, e.g.: 

= Table.AddColumn(dbo_BladeCollection_Ping, "DateTime", each #datetime(1970,1,1,0,0,0) + #duration(0,0,0,[timestamp]))

4.1 - At this point you'll get the warning that you can't add this type of column to a Direct Query model, and you need to switch to import.

5.  Close PowerQuery and Apply

Apply will fail saying "This query contains transformations that can't be used for DirectQuery".  Click the button at the bottom right of the PowerBI window to "Convert to Import"

6. Groan in frustration, because now BI will tell you it can't convert, because you haven't applied your changes yet.

7. Go back to PowerQuery and remove your custom column.  Close and Apply.

8. Convert to Import

Yay!  It worked!

9. Go back into power query and re-add that custom column

10. Close and apply

11. Smack your forehead because you still see the error, "This query contains transformations that can't be used for DirectQuery" even though you aren't using DirectQuery anymore.

12.  Try removing the custom column, re-applying, saving, closing BI, re-opening.  Groan in frustration again because you still get that error message

 

Can you PLEASE fix this?

3 REPLIES 3
sfowers
New Member

Also, before you ask,

Running PowerBI Desktop 64-bit 

Version: 2.71.5523.941 64-bit (July 2019)

Windows 10 Enterprise 1809

SQL Server 14.0.2027.2 on localhost

 

Anonymous
Not applicable

Hi @sfowers ,

According to your description, it seems like connection mode change hasn't complete correctly.
I'd like to suggest you to create a new report with same sql database and import mode, then copy your custom column query formula to new report to confirm if this issue appears.

Regards,

Xiaoxin Sheng

I did create a new report using import mode and it worked correctly.  However, the point of the post was to let you know that your conversion system has a fatal bug.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.