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
wokka
Helper IV
Helper IV

Automated extract from datawarehouse - possible?

Hi

 

I'm new-ish to powerbi so please excuse if this is a basic question.  

 

We have an existing data warehouse. In powerbi when we query the data warehouse, we curently manually create a table and  drag in 4 dimensions. Then we do a manual extract of data, out into a csv file.

 

My question is can we write DAX code ( or similar ) to do that extraction, and do you have to manually run the DAX inside powerbi or can we kick it off from a command line or python or a powerbi server etc?

 

I'm starting off by thinking about this at a high level/concept level, then will drill down into the technical,  if this approach is  possible.

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable
5 REPLIES 5
wokka
Helper IV
Helper IV

Hi,

 

Thanks everyones responses so far

 

So what we have is a powerbi pbix  file that connects to an existing powerbi sematic model.

 

What I do currently is manually drag in 4 dimensions into a table to use the relationship between them to find one component of the data ( our internal Reference ID ), then extract the data out to disk in csv form using "Export data".

 

wokka_1-1739143312123.png

 

 

wokka_2-1739143542303.png

 

I guess we could do it all via TSQL code via the database backend , however all the hard work to develop the data relationships already exists in the semantic model.

 

Maybe this is the long way around, but its the only way that we know how to do it right now  ( I'm newish to powerbi so ....) but there must be a way to avoid manual manipulation , and maybe create like a virtual table via DAX commands ( or similar ) then extract the data out from that somehow? 

 

Thanks in advance, the fabric forum people are very helpful.    🙂

Anonymous
Not applicable

Correct, the best way is to run a DAX query against that semantic model with all the required columns. Then save the query results as CSV if you must 

NandanHegde
Super User
Super User

Can you be a bit more clear with your ask?
Is your final aspect to generate a CSV file? Then you can use data pipelines to directly create a file from fabric warehouse itself. no need of having a Power BI report created just for that purpose.




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
lbendlin
Super User
Super User

You can access a data warehouse via its SQL Endpoint (for example). You can run custom SQL in your Power Query code.

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.