Forum Discussion

AGaribay7's avatar
AGaribay7
Frequent Visitor
3 years ago

Change table data with slicer

So, I have a table like this:

Player NumberShotsShots on targetPressuresRecoveriesKey PassesAssists
Player 1001011
Player 2212100
Player 3111010

 

I want to create groups:

Group 1 = Shots and Shots on target
Group 2 = Pressures and Recoveries
Group 3 = Key Passes and Assists

Use groups in slicer, and based on the slicer change table data.

When selected Group 1 in slicer:

Player NumberShotsShots on target
Player 100
Player 221
Player 311

 

When selected Group 2 in slicer:

Player NumberPressuresRecoveries
Player 110
Player 221
Player 310

 

When selected Group 3 in slicer:

Player NumberKey PassesAssists
Player 111
Player 200
Player 310

 

Can anyone help me ?

2 Replies

  • Hi AGaribay7 

    1. Create a Field Parameter containing the six measures.

    2. Add a "Group" column to the Field Parameter table, either by editing the DAX code for the table or by adding a calculated column.

    3. Include the field parameter column in your visual 

    4. Place Group on slicer

     

    Does this work for you?

  • This can be done with the help of two slicers. 
    Step 1: Go to Power Query.

    Step 2: Select three columns, i.e, shots, pressure and passes. and unpivot them. Do the same with the remaining 3 columns. This will create a 5 column table on PowerQuery with 2 attribute columns and 2 value Column with Player Number. 

     

     

    Step 3: Save the changes.

    Step 4: The three columns to be displayed in table should be Player Number, Value, Value1. Two slicers where one has Attribute and another with Attribute1.

    Step 5: Selecting 2 columns from slicers will give the desired result.