Forum Discussion

jonclay's avatar
jonclay
Helper IV
3 years ago
Solved

Transformations in SQL rather than Power BI but using Direct Query

Hi everyone

Up until recently I've been pulling data from our SQL database into Power BI via Direct Query Mode and then doing all my Transformations from within Power BI.

However, I've read that it's better to let SQL do most of the work (e.g. SELECT the columns you want rather than use Power BI to remove any unwanted columns etc). So, I've written SQL statements for each table and placed them in the Source within the Applied Steps section.

This works fine until I then add a Transformation within Power BI (in this case adding a Custom Column). Power BI wants me to switch fo Import Mode which is not what I want to do (I want to stay in Direct Query Mode). 

 

Is it asking me to do this because the SQL script within Source is not actually pulling the data into Power BI? If so, how can I get around this, if at all?

Many thanks
Jon

5 Replies