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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jaryszek
Super User
Super User

How to create drill button with JavaScript API?

Hi,

i do not want to use native power bi drill through solution and want to reproduce this in java script API while embedding app. 

Scenario is:
1. User is selecting field.

2. "Show details" button is activated
3. User clicks it and it is moving it into another page. 

it is possible?

Best,
Jacek


Best Wishes,
Luke Jarych

From data chaos to business clarity — let’s connect and solve data challenges together.
LinkedIn Connect with me on LinkedIn
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @jaryszek 

Thanks for reaching out to the Microsoft fabric community forum.

Regarding the issue you raised, my solution is as follows:


1.First, you can use custom visuals, and you need to create a selection ID so that Power BI can send the correct context signals to other visuals:

 

For more details, please refer to:

https://docs.microsoft.com/en-nz/power-bi/developer/visuals/selection-api 

 

2.Second, display this option by binding the context menu to elements with valid selection IDs that match the measures or fields set to drill:

 

For more details, please refer to:

https://docs.microsoft.com/en-nz/power-bi/developer/visuals/context-menu 

Best Regards,

Leroy Lu

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
Anonymous
Not applicable

Hi, @jaryszek 

Thanks for reaching out to the Microsoft fabric community forum.

Regarding the issue you raised, my solution is as follows:


1.First, you can use custom visuals, and you need to create a selection ID so that Power BI can send the correct context signals to other visuals:

 

For more details, please refer to:

https://docs.microsoft.com/en-nz/power-bi/developer/visuals/selection-api 

 

2.Second, display this option by binding the context menu to elements with valid selection IDs that match the measures or fields set to drill:

 

For more details, please refer to:

https://docs.microsoft.com/en-nz/power-bi/developer/visuals/context-menu 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.