Forum Discussion

oliverblane's avatar
oliverblane
Helper III
4 years ago
Solved

Add/Remove Columns of Matrix Visual Using Slicer

I want to be able to add and remove columns from a matrix visual using a slicer, very similar to how it is done in the solution of this question: https://community.powerbi.com/t5/Desktop/Adding-Remov...
  • MFelix's avatar
    MFelix
    4 years ago

    Hi oliverblane ,

     

    For this you need to create a disconnected table with the following format:

     

    Now add the following measure:

    Selected Measure value = 
                SWITCH( SELECTEDVALUE(Matrix_Selection[Measure]),
                "Allocated" , SUM(Measure_Selection[Allocated]),
                "Attended", SUM(Measure_Selection[Attended]),
                "Planned Capacity", SUM(Measure_Selection[Planned Capacity])
                  )

    Add the Measure column from the previous table on the column below the Month, and the measure above on the values.

     

    Result below and in attach PBIX file.

    Has you can see the matrix on the bottom only show selected measures.