Forum Discussion

meg5w's avatar
meg5w
Frequent Visitor
7 years ago
Solved

Graph filter for OVERALL total not column total

I am needing to filter a graph, basically saying if the total count is <4, don't show the graph. I tried adding this to the visual level filters but did not have any luck, as it breaks it down and filters the colum totals - not the OVERALL total. Is there a way to do this? 

  • meg5w ,

     


    meg5w wrote:

    I am needing to filter a graph, basically saying if the total count is <4, don't show the graph. I tried adding this to the visual level filters but did not have any luck, as it breaks it down and filters the colum totals - not the OVERALL total. Is there a way to do this? 


    I'm afraid slicer/visual level filter can only filter the rows in table, they can't remove a visual based on user's selection. As a workaround, you may create several bookmarks and several buttons(which present different sitution. e.g.: Total < 4, Total = 4, Total > 4) and select one bookmark as action for each button.

     

    About how to create bookmarks and link to button, please refer to doc below:

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

    https://docs.microsoft.com/en-us/power-bi/desktop-buttons#select-the-action-for-a-button

     

    Community Support Team _ Jimmy Tao

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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Please [ost sample data, expected a result and error you are facing.

  • v-yuta-msft's avatar
    v-yuta-msft
    Icon for Community Support rankCommunity Support

    meg5w ,

     


    meg5w wrote:

    I am needing to filter a graph, basically saying if the total count is <4, don't show the graph. I tried adding this to the visual level filters but did not have any luck, as it breaks it down and filters the colum totals - not the OVERALL total. Is there a way to do this? 


    I'm afraid slicer/visual level filter can only filter the rows in table, they can't remove a visual based on user's selection. As a workaround, you may create several bookmarks and several buttons(which present different sitution. e.g.: Total < 4, Total = 4, Total > 4) and select one bookmark as action for each button.

     

    About how to create bookmarks and link to button, please refer to doc below:

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

    https://docs.microsoft.com/en-us/power-bi/desktop-buttons#select-the-action-for-a-button

     

    Community Support Team _ Jimmy Tao

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