Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Here is my code:
let
Source = Sql.Database("localhost", "DB",
[Query="select id from table#(lf)where name = '"&Name&"'#(lf)and othercondition = 0#(lf)"]),
id = Source[id]
in
id
I get "This query contains transformations that can't be used for DirectQuery."
Is there a way of running sql selects with PB parameters in DQ mode?
Thanks
Solved! Go to Solution.
DQ mode connects directly to the source data stays where it is, it doesn't import the data into Power bi engine/power query to make transformation on it. DQ mode doesn't allow trasformations to be made directly on the source just like Live connection mode.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi @Markzolotoy
The answer is simply no, you can't use SQL statemants in DQ mode, it needs Database.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
What does it mean "requires database"?
DQ mode connects directly to the source data stays where it is, it doesn't import the data into Power bi engine/power query to make transformation on it. DQ mode doesn't allow trasformations to be made directly on the source just like Live connection mode.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |