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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bharathi2233
New Member

Writeback Functionality In Power BI

Hi,

 

I have a stored procedure in the database which will be inserting or updating the data if we invoke it by sending a key. Now I have to send this key and invoke the stored procedure from Power BI. how to do this? Do I have to use the Writeback? or do we have any other options?

Thanks in Advance.

1 ACCEPTED SOLUTION
cengizhanarslan
Super User
Super User

Option 1) Put an API layer in front of the stored procedure:

Power BI triggers an action → that action calls an HTTP endpoint → the endpoint runs the stored procedure and returns success/failure.

Typical implementations:

  • Power Automate button in the report → calls an API / SQL connector → runs the SP.

  • Power Apps visual → user submits the “key” → Power Apps calls SQL / API → runs the SP

 

Option 2) Translytical Task Flows (write-back/actions):

If your write-back can be implemented through Fabric user data functions (or you can expose your SP via an API that the function calls), you can put a “data function button” in the report that passes inputs (like your key) and triggers an action.

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

6 REPLIES 6
bharathi2233
New Member

Thanks everyone for your input. I will check the options and try it out and update you.

Hi @bharathi2233 

Checking in to see if you had a chance to review or test the recommendations shared earlier.
If the issue is still unresolved, please share what you’ve tried so far or any blockers you’re facing, and we can assist you further.

cengizhanarslan
Super User
Super User

Option 1) Put an API layer in front of the stored procedure:

Power BI triggers an action → that action calls an HTTP endpoint → the endpoint runs the stored procedure and returns success/failure.

Typical implementations:

  • Power Automate button in the report → calls an API / SQL connector → runs the SP.

  • Power Apps visual → user submits the “key” → Power Apps calls SQL / API → runs the SP

 

Option 2) Translytical Task Flows (write-back/actions):

If your write-back can be implemented through Fabric user data functions (or you can expose your SP via an API that the function calls), you can put a “data function button” in the report that passes inputs (like your key) and triggers an action.

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

Hi @bharathi2233 

Following up to confirm if the earlier responses addressed your query. If not, please share your questions and we’ll assist further.

Kedar_Pande
Super User
Super User

@bharathi2233 

 

Power BI button → Power Automate flow → Execute SQL stored proc

 

 

rohit1991
Super User
Super User

Hii @bharathi2233 

 

Power BI does not support direct writeback or executing insert/update stored procedures from a report, as it is a read-only analytics tool. To send a key and invoke a stored procedure, you must use an external layer such as a Power Apps visual (for data entry/updates) or a Power Automate flow (button-based action) that receives the key from Power BI and executes the stored procedure via the SQL connector or an API.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors