Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
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
Hi,
I have to implemement this too.
I have been looking this up the last days/weeks and can't find anything.
Did you figure it out yet?
Best regards,
Victor
Hi,
Did you figure it out? I need to implement something similar
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.