Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
llrt
New Member

Create dataset from Data Mart visual or SQL queries

Hi

I'm working and trying to derive a dataset/semantic model from a filtered Data mart. Shouldn't it be possible to create a dataset from a Data mart visual or SQL query? This feature would allow for end user teams to derive specialized and useful datasets in a more straightforward way.

5 REPLIES 5
llrt
New Member

Hi

I'm working and trying to derive a dataset/semantic model from a filtered Data mart. Shouldn't it be possible to create a dataset from a Data mart visual or SQL query? This feature would allow for end user teams to derive specialized and useful datasets in a more straightforward way.

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

ibarrau
Super User
Super User

Hi. I don't think you would connect the query, instead you can write the query. You can get the SQL Connection string or endpoint of the datamart. Then create a new dataset with Power Bi Desktop and get data from SQL Server. Paste the servername you have copy. Open advanced setting and write your SQL query.

That way you will get the query result as table.

If you are not sure how to get the endpoint. Check this link: https://learn.microsoft.com/en-us/power-bi/transform-model/datamarts/datamarts-analyze#get-the-t-sql...

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Thanks for your answer @ibarrau . I'm aware you can create datasets from PBI Desktop + SQL Server endpoint, but I was looking for an easier, less convoluted solution.
My scenario is comprised of non tech end users using the datamart in their daily jobs, wanting to derive niched/filtered datasets with others. In my point of view, this should be possible for them using only datamart's interface on Power BI Service, especially with no/low code interfaces such as visual queries, without the need to leave the interface or interact with more technical assets such as SQL Server endpoints. Is there a way to do so or is it still a feature request?

Well. I'm having trouble to understand why would you do that. If you want to build DIMs and FACTs you can do it in tables in datamart, no in a query that can be called later. You can transform and build the "ready" tables you want for the users instead of letting use a prebuilt query.

If you want them to run queries they can just connect to the endpoint. 

If you are not leting the user run queries and you don't want to share them a dataset that already has the connection with the queries load as tables built it with a PowerBi Desktop. You could use dataflows to build tables that are running queries to datamarts. That way you will keep all the work at Power Bi Service. Still thinking you could just create the tables in the data mart with a query, joining, etc to build a ready table.

I hope that make sense


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.