cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
mypowerbi1
Helper III
Helper III

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 NameImage
AXXXX
BYYYY
CZZZZ

 

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

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @mypowerbi1 ,

 

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.

vchenwuzmsft_0-1647224170510.png

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.

 

View solution in original post

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @mypowerbi1 ,

 

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.

vchenwuzmsft_0-1647224170510.png

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.

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors