cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Python script activated on Button

Dear All,

I have the following case:

 

I have a report that should display data based on user language. I planned to create a Python script that renames the labels.

I would like to have a button saying for example Spanish, and when the user clicks on this button, he activates Python script that translates the report into Spanish. 

 

Is such an option possible? Can I assign Python script to button?

 

Thanks,

Olga

3 REPLIES 3
Highlighted
Super User II
Super User II

Hi @Anonymous,

This would not be possible currently. The container for custom/R/Python visuals is sandboxed from the main DOM and can only receive data from the this outer DOM for processing inside its own container. These visuals aren't able to directly communicate back out with the main Power BI window, except for specific APIs such as slicer functionality (which I believe is only accessible via the TypeScript SDK). You could not for example, send localisation strings or a locale code back from this container to other visuals in your report for them to act upon.

The state of multi-lingual support in Power BI hasn't really improved. The following two videos are still the most flexible you can get at this time (although you have since been able to manage visual titles with DAX/conditional formatting):

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted

Hi,

I have understood that multi language is not supported yet. 

 

But how about starting any other python script with a button in Power BI?

Does anyone know?

 

BR Thomas

Highlighted

Hi, 

 

Did you figure it out? I need to implement something similar

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Kudoed Authors