Learn 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
| User | Count |
|---|---|
| 59 | |
| 47 | |
| 31 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 77 | |
| 66 | |
| 46 | |
| 22 | |
| 22 |