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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lucmax
Helper II
Helper II

Disable/hide include/exclude buttons within contex menu

Hi,

 

is there a way to hide/disable the include and exclude button within the context menu when working with custom visuals?

 

Bildschirmfoto 2021-10-06 um 17.50.02.png

 

Within our visual we have a different way of filtering data and need to disable them so the users wont use these buttons and get confused. But we need the context menu itself to she the drillthrough button to our user.

 

Regards,

lucmax

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

HI @lucmax

I too would like this option. While this isn't currently possible, if you just want drillthrough, one option could be to manage through modern tooltips if you have them enabled in your report rather than the context menu. You'll need to pass a selection ID like for a report page tooltip also for drilldown and/or drill through to be available.

Modern tooltip support has been added in powerbi-visuals-api 3.8.3 via the supportEnhancedTooltips property, and something like the following in your capabilities will enable it:

{
    ...
    "tooltips": {
        "supportEnhancedTooltips": true,
        "supportedTypes": {
            "default": true
        }
    },
    ...
}

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

3 REPLIES 3
dm-p
Super User
Super User

HI @lucmax

I too would like this option. While this isn't currently possible, if you just want drillthrough, one option could be to manage through modern tooltips if you have them enabled in your report rather than the context menu. You'll need to pass a selection ID like for a report page tooltip also for drilldown and/or drill through to be available.

Modern tooltip support has been added in powerbi-visuals-api 3.8.3 via the supportEnhancedTooltips property, and something like the following in your capabilities will enable it:

{
    ...
    "tooltips": {
        "supportEnhancedTooltips": true,
        "supportedTypes": {
            "default": true
        }
    },
    ...
}

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Hi @dm-p,

 

that is a pretty good solution. Thanks for the hint!

 

Best regards

v-yiruan-msft
Community Support
Community Support

Hi @lucmax ,

Base on my research, currently Power BI don't support this feature. Here is one similar idea shared on Power BI Ideas, you can vote it up and add your comments there to improve Power BI on this feature. Of course, you can also raise one new idea ticket on Power BI Ideas.

Best Regards

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.