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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cassidy
Power Participant
Power Participant

Query Dataflow with SQL Server (SSMS)

You read that right, I don't want a Dataflow to query a SQL Server, but rather a SQL Server to query a Dataflow.

 

Why?  The Dataflow is using a Google Analytics API and since it performs well and parses the data, I then want to query that Dataflow and store it in a SQL Table on a daily basis.

 

Anyone ever done that?  Is it possible?

 

Thanks

1 ACCEPTED SOLUTION

@Nimai123 

 

I was able to come up with a solution, though a little more excessive than I wanted.

 

  1.  Create Dataflow to connect to Google Analytics using the API.
  2.  Create Dataset from Dataflow(s).
  3.  Create a Paginated report using Power BI Report Builder.  Using new Dataset, pull in the columns of Data from GA.
  4.  Using the REST API functions & Power Automate, Export the Paginated report to CSV  ( this blog post was extremely helpful https://blog.crossjoin.co.uk/2020/04/27/calling-the-power-bi-export-api-from-power-automate-part-2-c...)
  5.  Create procedure to pick up CSV file and insert into SQL DB.

Once it's in the SQL DB, it can be brought back into PowerBI if needed.

 

View solution in original post

4 REPLIES 4
Nimai123
Post Patron
Post Patron

Hello @cassidy 

 

I understood why you want to try it but I don't think so Power BI has an API which can help you achieve your desired goal.

 

All links that can help you with Dataflows

https://radacad.com/category/dataflow

https://docs.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-introduction-self-serv...

https://docs.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-features-limitations

 

Similar thread as per your requirement which also states it is not possible

https://community.powerbi.com/t5/Service/Dataflow-amp-SSMS/td-p/815339

 

IF YOU LIKE MY ANSWER PLEASE ACCEPT IT AS A SOLUTION AND GIVE KUDOS

 

Regards,

Nimai

 

 

Thanks for the reply @Nimai123 .

 

I've learned that you can connect to a Dataset in SSMS, so I'm trying to map that to a SQL table.  My GA Dataflows would load into a GA Dataset, and then try and pull it from there.  So far it does not like mapping something coming from Analysis Services.

 

Another not so fun option, I've built a Flow that converts the JSON to CSV.  Trying to save that CSV to a folder and have SSMS pick it up.

 

I'll post a solution if I get something reliable.

Hello @cassidy 

 

The second option could be a better one!

 

Sure do let me know!

 

Regards.

@Nimai123 

 

I was able to come up with a solution, though a little more excessive than I wanted.

 

  1.  Create Dataflow to connect to Google Analytics using the API.
  2.  Create Dataset from Dataflow(s).
  3.  Create a Paginated report using Power BI Report Builder.  Using new Dataset, pull in the columns of Data from GA.
  4.  Using the REST API functions & Power Automate, Export the Paginated report to CSV  ( this blog post was extremely helpful https://blog.crossjoin.co.uk/2020/04/27/calling-the-power-bi-export-api-from-power-automate-part-2-c...)
  5.  Create procedure to pick up CSV file and insert into SQL DB.

Once it's in the SQL DB, it can be brought back into PowerBI if needed.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.