Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pkoel-asb
Helper V
Helper V

Can I run an AJAX call in a Power BI Tool Tip

Hello Friends,

 

    My developer coworker has asked the following question: When the ManufID=13, can we change the test color to red AND have a tool tip set up to run an AJAX call and display the reults in the tool tip?

 

I do not know AJAX, or it I am even saying this correctly, but I beleive that he wants me to create a tool tip that will display the resilts of an AJAX call in a tooltip. Can this be done? If so, can you point me to some samples or documentation?

 

Cheers!

 

Peter

2 REPLIES 2
amitchandak
Super User
Super User

@pkoel-asb , for color we can have color measure and use that in conditional formatting using the field value option

 

if(max(Table[ManufID])=13, "Red", "White")

 

I doubt you can have ajax of tooltip. But you can use power bi page. There you can try HTML content visual

 

https://docs.microsoft.com/en-us/power-bi/desktop-tooltips

 

use in tooltip page

HTML content
https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa200001930?tab=overview
D3js
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381354?tab=Overview

Thanks for the reply!

 

Now I just need to know if I can run AJAX in a tooltip. If not, can I create a custom Javascript and run it inside the tool tip?

 

Peter

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.