Forum Discussion

benjos23's avatar
benjos23
Helper I
1 year ago
Solved

Filtering visual from matrix by only selecting rows

Hi !

I have a matrix that contains amount for account numbers (rows) and months (columns), something like this :

 JanuaryFebruaryMarchApril...
Account 1  110100200210...
Account 2  50203590...
Account 3  101002030...
...  ...............

 

I want to allow users to select an account in the matrix, so that other visuals are updated and show only information about the selected account. However, I would not like users to be able to filter a specific visual (a line chart) by selecting a month in the matrix.
Therefore, my question is the following :
- Is there a way to disable interactions from matrix to a specific visual, but only for columns (in my case months) of the matrix ? I don't want to create a slicer for account number, as I have a lot of them. I really need the matrix to be able to filter out account number.

 

I hope my explanation is clear, and I remain available if further clarification is needed.
I would really appreciate your help ๐Ÿ™‚

Thank you !

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi benjos23 

     

    Thank you for the detailed explanations and screenshots. I understand what you're trying to achieve. But to my knowledge, there is no good way to achieve it. As you can see, when you remove interaction, the line chart will not be affected by the matrix, so the Account row can't filter the line chart.

     

    When using measures, we can use REMOVEFILTERS to remove some filters in the context. However, in a line chart, we cannot use DAX functions like REMOVEFILTERS to remove the filter interaction on the x-axis column. At the same time, only Column can be added to x-axis. The x-axis field (Month column) is affected by the filter interaction from Matrix visual. We cannot make only the x-axis field not affected. 

     

    Best Regards,
    Jing

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi benjos23 

     

    Based on what I've learned and tested, there's no good way to achieve what you're looking for. The matrix is two-dimensional. When a value cell is selected, the row value and column value of the cell will be passed to other visuals affected by the cross-filter interaction at the same time, and there is no way to only disable the influence of column value.

     

    One workaround without modifying anything is to teach the report users to pick a value from row headers rather than a value cell, this could allow users to pick a row and pass only Account value to filter other visuals, just like below. You may add a notice or comment to teach users how to operate. 

     

    Another alternative is to have a table or matrix visual which only has the Account column, and use it to filter other visuals. This is similar to using a slicer to filter other visuals.

     

    Other workarounds usually need to create measures to exclude or include specific filters in the context. If you have many visuals that need to be affected, you might need to create several measures for those visuals.  

     

    Hope this would be helpful. 

     

    Best Regards,
    Jing
    If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

    • benjos23's avatar
      benjos23
      Helper I

      Hi Anonymous ,

      Thank you for you answer, I appreciate it.
      Effectively, I could teach my users to use the report in a certain way... but from experience, they will ultimately try to do something else.
      I also tried to create a measure like this, and put it on my line chart visual :

      ACTWithoutTime =
      CALCULATE(
          [ACT],
          REMOVEFILTERS(DateDim[Month])
      )
      But the chart still get filtered by either slicers or matrix...
      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi benjos23 

         

        What is the field on x-axis in the line chart? Can you show the current result with the measure and the desired result you want to achieve?

         

        Best Regards,
        Jing