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
xRusty04x
New Member

Power Query - Create Column with Link to invoke custom function only on click

Dear all,

 

I have a custom function that is working fine, using Web Contents. However I am struggeling in using this function within Power BI.

The first attempt was to add it as Custom Column -> Invoke Function, but this immediatelly triggers the web request for all records within the query. Is there any way I can add a custom column that with a value e.g. "Trigger" and only once this link is clicked, the function will execute?

My second try was to use a Power BI button to execute the query function, but again, there's only the possibility to call a web url as an action on the button itself.

Is there any other option to solve my issue? I simply would like to invoke the function manually for a certain row within a given data set and a specific column value as input parameter.

I know that I could trigger a PowerAutomate and this again could invoke my API, but I just wanted to make sure that there isn't any better solution for that in order to avoid raising complexity for such "a simple" requirement.

 

Thank you and best regards,

 

Philipp

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @xRusty04x ,

 

unfortunately, the simple answer is - no, you can't.

 

It's not possible to alter the dataset during normal user interactions, like slicing and dicing. This means you have to use your API during data load / data refresh.

 

Even if your requirement seems simple, it touches the foundation of the Power BI architecture.

 

Hopefully, this provides some more insights.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
xRusty04x
New Member

@TomMartens Well that's not the answer I  hoped for 😉 however it did answer my question. Thank you very much and best regards,

 

Philipp

TomMartens
Super User
Super User

Hey @xRusty04x ,

 

unfortunately, the simple answer is - no, you can't.

 

It's not possible to alter the dataset during normal user interactions, like slicing and dicing. This means you have to use your API during data load / data refresh.

 

Even if your requirement seems simple, it touches the foundation of the Power BI architecture.

 

Hopefully, this provides some more insights.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors