Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Good day
Is it possbile to write a SQL query in PowerBI?
Example
SELECT name, surname, date
FROM table
WHERE name = 'BOB' AND date > '2019-01-24'
AND date in
(SELECT MAX(DATE)
FROM table)
ORDER BY name;
Solved! Go to Solution.
If you select advanced options when setting up a SQL data source, you get a box to enter the SQL Query in the "Statement" box.
More info here: https://support.microsoft.com/en-us/office/import-data-from-a-database-using-native-database-query-p...
If you select advanced options when setting up a SQL data source, you get a box to enter the SQL Query in the "Statement" box.
More info here: https://support.microsoft.com/en-us/office/import-data-from-a-database-using-native-database-query-p...
I don't want to use PowerBI dax, I want to use SQL query it self
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |