Forum Discussion
how to SQL Statement to create report in Power BI desktop
- 5 years ago
RobertXiong , You have to create a connection and in advance option, you can give SQL
- Anonymous5 years ago
RobertXiong
Unfortunately, Power Bi doesn't support using SQL statement to build report, you can only use it to connect database to Power BI.Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
RobertXiong , You have to create a connection and in advance option, you can give SQL
Thanks for your solution. I already created connection to database and already created dataset in Power BI Desktop, it's all ready for building report. I already has SQL Statement like "Select employee_id, employee_name, dept_name, salary from employee, department where .....", actual SQL Statement is much more complicated than this example, that's why I prefer to use this SQL Statement to build report.