Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello all,
The recent requirements for a PowerBI custom visual is to have a context-menu to deploy it to the app source. We did implement the context menu as per guide lines and we are able to get the context menu in desktop but we couldn't get the context menu on long-press in mobile. We checked the simple bar chart visual of PowerBI to verify, It does not show context menu on long-press. Is this a PowerBI limitation ?
Solved! Go to Solution.
Hi @Anonymous
If you've bound the event using contextmenu, then according to the docs, there isn't a corresponding event for mobile. Their suggestion is to use an external library, which I presume means powerbi-visuals-utils-interactivityutils. This library has a method for handling the context menu, although I've just skimmed the source code and it still binds to that event anyway, so your suspicions may be correct.
Deployment to AppSource with this functionality should be fine. I've submitted an uncertified visual that does this, and have recently had another visual pass certification (if you're going that far) using this approach too. However, if you are concerned about getting stuck somewhere in the process and want to ensure everything's right beforehand, you'll be better contacting pbicvsupport@microsoft.com for specific advice as they'll be the ones reviewing the visual during the process and have been very helpful to me in the past when I've had similar questions.
Good luck,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @Anonymous
If you've bound the event using contextmenu, then according to the docs, there isn't a corresponding event for mobile. Their suggestion is to use an external library, which I presume means powerbi-visuals-utils-interactivityutils. This library has a method for handling the context menu, although I've just skimmed the source code and it still binds to that event anyway, so your suspicions may be correct.
Deployment to AppSource with this functionality should be fine. I've submitted an uncertified visual that does this, and have recently had another visual pass certification (if you're going that far) using this approach too. However, if you are concerned about getting stuck somewhere in the process and want to ensure everything's right beforehand, you'll be better contacting pbicvsupport@microsoft.com for specific advice as they'll be the ones reviewing the visual during the process and have been very helpful to me in the past when I've had similar questions.
Good luck,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |