Forum Discussion

PaisleyMike's avatar
PaisleyMike
Regular Visitor
8 years ago
Solved

Values not affected by filter

Hello 

 

I am looking for a way to show values but not have those values affected if a slicer is used 

 

If this is possible help would be appreciated 

 

 

Thank you 

 

  • MFelix's avatar
    MFelix
    8 years ago

    Hi PaisleyMike,

     

    The edit interaction is based on the full chart so the bar and lines will be or not affected by the slicers.

     

    To have waht you want you need to place in the lines a calculated measure with a ALL sintax as filter.

     

    As you can see below the red line is the measure i created in this case is:

     

    Measure = CALCULATE(SUM(Table1[Budget]);ALL(Table1[Project]))

     

    On the left you have a chart that don't have any interactions with the slicer in the right it as look at the red line and at the black line you will check that the red always stays the same:

     

     

     

    Regards.

    MFelix

10 Replies

  • Hi PaisleyMike

     

    You have to got to Format > Edit interactions 

     

    And you have to click else on the filter icon or the other one

     

     

    Quentin

    • PaisleyMike's avatar
      PaisleyMike
      Regular Visitor

      Thanks 

       

      Also is there a way to do this withing a line and stacked Chart 

       

      e.g 

       

      Bar chart is able to change 

      Line chart remains unchanged 

      • quentin_vigne's avatar
        quentin_vigne
        Solution Sage

        PaisleyMike

         

        yes you can do that, there is the same option, you only have to click on the the slicer and then choose the filter on the line chart

    • JonatanM's avatar
      JonatanM
      Frequent Visitor

      Dear Quentin,

       

      Thanks for this reply, I get it to work. But I would like a visual to be unaffected by ALL slicers. I currently have plenty in my report, and setting this up for each and every one of them is a bit tedious and I think poor practice... Any ideas? Thanks a lot!

       

      Jonatan

      • MFelix's avatar
        MFelix
        Super User

        Hi JonatanM 

         

        If you have a specific visual that you don't want to be affected by the slicer then you need to create a measure or measure specifically designed for that visual that will keep filters untouched.

         

        Depending on what is the calculation you are doing this can be done using a REMOVEFILTERS for example:

         

        https://dax.guide/removefilters/

         

        There are other alternatives but please check the documentation and if needed get back to me please.

  • alexei7's avatar
    alexei7
    Continued Contributor

    Hi,

     

    Yes you can do this.

     

    If you select the slicer you should see a menu appear at the top with "Format" as the title.

    If you click on this, there's an option to "Edit iteractions". Click on this and each visual will have a filter icon or a circle with a line through it. If you click the circle with line, that will mean that the visual will not be filtered by that slicer.