Forum Discussion
How to create drill button with JavaScript API?
- Anonymous1 year ago
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.
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.