Forum Discussion
call java script function from power bi
Hi,
In the table visual, I have to give hyperlink on a column's values. So when user click on the values it should open a .net based portal for each value.
| Product Name | Image |
| A | XXXX |
| B | YYYY |
| C | ZZZZ |
As per the above example, when user click on the values of Image column it should cal a java script function and open the individual image in a .net based portal.
Please suggest how to achieve this in Power BI.
Thanks
Hi Anonymous ,
No, Power BI is not support Javascript. However, I recommend you some other methods.
1 Use HTML Content visual.
This will let you show the image by HTML language. For more details you can refer this website.
Getting the Visual | HTML Content - Custom Visual for Power BI (html-content.com)
2 If just open a web site by default browser. let the type of this column is Web URL or Image URL.
Refer this video.
Using IMAGES in Power BI - YouTube
3 Maybe you can try python script to do that.
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Docs
Or you can submit your idea to Power BI Ideas website.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-chenwuz-msftCommunity Support
Hi Anonymous ,
No, Power BI is not support Javascript. However, I recommend you some other methods.
1 Use HTML Content visual.
This will let you show the image by HTML language. For more details you can refer this website.
Getting the Visual | HTML Content - Custom Visual for Power BI (html-content.com)
2 If just open a web site by default browser. let the type of this column is Web URL or Image URL.
Refer this video.
Using IMAGES in Power BI - YouTube
3 Maybe you can try python script to do that.
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Docs
Or you can submit your idea to Power BI Ideas website.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.