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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
asainzlopez
Frequent Visitor

How to extract a power bi value and insert that value in a sql database with Power Automate?

Hello everybody! 

 

I'm working with the power automate preview visual because I want to create a flow that extracts the power bi value from a card visual and insert it as a row in a table located SQL Server. 

 

I have done the same before calling to an API, extract the value from that API and insert it in SQL Server like this (ir works perfectly): 

caputra api general.JPG

I have used the same process for getting the power bi value but it doesn't work. Here is the flow I have used: 

1) First, I use a GET process with HTTP action. On the URL parameter I use the "pais seleccionado" item which is the metric of the visual card I want to get (it shows the country selected in a slicer).

asainzlopez_1-1650960692042.png

2) After, I parse that item to JSON object so I can insert it without format problems in a SQL Database:

asainzlopez_3-1650960895806.png

But I need a schema example for that item and I can't find it.

 

asainzlopez_4-1650961176617.png

3) Finally, I use an "insert row in sql" action: 

asainzlopez_5-1650961378119.png

 

I've been looking for a solution and try everything I have foundb but it doesn't work.  

 

It would be fantastic if anybody can help me with this... 

 

Thanks in advance. 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @asainzlopez ,

You can refer the following links to get it.

export data from power bi visuals to excel automatically

yingyinr_0-1651215026891.png

Power Automate Desktop: Read & Filter Excel With SQL Query

In addition, you can also extract the data from Power BI to SQL by the following methods:

1. With R or using SSIS

Exporting Power BI Data to SQL Server

2. Powershell

Export Power BI Desktop data to SQL Server

3. Using API

Export Filtered Dataset from Power BI to SQL Server Programmatically using API and Power BI Embedded

Best Regards

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

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @asainzlopez ,

You can refer the following links to get it.

export data from power bi visuals to excel automatically

yingyinr_0-1651215026891.png

Power Automate Desktop: Read & Filter Excel With SQL Query

In addition, you can also extract the data from Power BI to SQL by the following methods:

1. With R or using SSIS

Exporting Power BI Data to SQL Server

2. Powershell

Export Power BI Desktop data to SQL Server

3. Using API

Export Filtered Dataset from Power BI to SQL Server Programmatically using API and Power BI Embedded

Best Regards

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.