Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
can I run a sql query against data imported into the semantic model in power bi desktop
Solved! Go to Solution.
Hi @djm7 ,
The short answer is no, you can't query model data using SQL within Power BI Desktop. PBI models use the tabular structure and are optimised for DAX and MDX queries.
However, depending on your use-case, you may be able leverage Datamarts, but you've not provided enough information to understand whether this is feasible/appropriate or not:
https://learn.microsoft.com/en-us/power-bi/transform-model/datamarts/datamarts-analyze
Pete
Proud to be a Datanaut!
No, you cannot run SQL queries directly on imported data in Power BI’s semantic model. Instead:
No, you cannot run SQL queries directly on imported data in Power BI’s semantic model. Instead:
Hi @djm7 ,
The short answer is no, you can't query model data using SQL within Power BI Desktop. PBI models use the tabular structure and are optimised for DAX and MDX queries.
However, depending on your use-case, you may be able leverage Datamarts, but you've not provided enough information to understand whether this is feasible/appropriate or not:
https://learn.microsoft.com/en-us/power-bi/transform-model/datamarts/datamarts-analyze
Pete
Proud to be a Datanaut!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
6 | |
5 | |
5 |
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |