Forum Discussion
Datamart - SQL query Editor
Hi
I am new to Datamart, and i was wandering if i create a sql query within the datamart, am i able to use this query to create a report or i still need to create within the SQL enviroment.
Basically, i brought in a table, writing a sql query and would like to use the query to create the report.
12 Replies
- daXtremeSolution Sage
"Basically, i brought in a table, writing a sql query and would like to use the query to create the report."
OK, so what's the problem? If you've brought in a table into PBI Desktop or Online, then what keeps you from using it to create reports?
- KevinMorneaultHelper II
Hi what i mean is i have the table in powerbi, if i right a query for that table in sql, the new query i have created. how can i use it for the report. Normally i would do the query in sql management then bring the query in PowerBI to create the report. with the datamart now lettting us write query in sql. i was just wandering if i can use that query against a report.
- daXtremeSolution Sage
I've never heard about anyone being able to run a SQL query against a report created in Power BI... SQL is for querying databases. DAX is for querying semantic models. Two very different things.
- CharleyKirtonFrequent Visitor
KevinMorneault - did you ever find out the answer? I came looking for that exact thing. I don't see the point in writing the SQL to make a new query if you can't access that query result from the PBI report. 🤔
- nabullockFrequent Visitor
Did anyone evere answer this?
I have loaded tables into a datamart, then wrote a SQL query on those tables. It runs and I can see results, but the query does not show up in the report writer, only the tables do.- CharleyKirtonFrequent Visitor
Yeah, same nabullock . Maybe it's only like this while it's in preview and they bring the access to the SQL queries into the report layer, otherwise it seems quite pointless - certainly for the way we work in my office.
- nabullockFrequent Visitor
I ended up using the SQL quries as data sources within the Power BI dataset