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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
prathamesh27
Frequent Visitor

UDF writeback text to SQL table

I have SQL table which contains HB and Notes section, I will click on HB in table in Report, then it fetches specific HB but when i ut comments in Notes Input slicer the button shows error(Notes is required but has no value),
I want to update Notes for specific HB(Unique) from Power BI report using UDF. I have seen many solution with Text slicer but now there is not text slicer as it is replaced by Input slicer, and that method is not working. It is not passing comments to UDF. Please show me process to do it.

prathamesh27_0-1774549658945.png

prathamesh27_1-1774549685854.png

 

1 ACCEPTED SOLUTION
DanieleUgoCopp
Responsive Resident
Responsive Resident

Hello,

what usually works in practice is using Power Apps visual for writeback, or calling a Power Automate flow that writes to SQL, both handle text input much more reliably than trying to force it via UDF if you really want to stick with SQL/UDF, you’d need a parameterized query or direct query trick,

I’d try Power Apps first, much smoother for this use case

Best regards,
Daniele

 
 
 

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @prathamesh27,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @DanieleUgoCopp and @lbendlin for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the response provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @prathamesh27,

 

We wanted to kindly follow up to check if the response provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

lbendlin
Super User
Super User

I want to update Notes for specific HB(Unique)

Not currently possible. UDFs only work against Filter context, not against individual "rows".

DanieleUgoCopp
Responsive Resident
Responsive Resident

Hello,

what usually works in practice is using Power Apps visual for writeback, or calling a Power Automate flow that writes to SQL, both handle text input much more reliably than trying to force it via UDF if you really want to stick with SQL/UDF, you’d need a parameterized query or direct query trick,

I’d try Power Apps first, much smoother for this use case

Best regards,
Daniele

 
 
 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.