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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.