Forum Discussion

Adidas's avatar
Adidas
Icon for Helper I rankHelper I
5 years ago
Solved

How to retrieve a slicer selection into another table

Hi all,
I'm trying to achieve this with Dax but still no success,
My powerBI report has a table with a list of employees,
and two additional columns of products allocated for each employee.
In each row, the user has to choose between two products for the particular employee: Product A or Product B,
and since the two products have different prices, the bottom total should change accordingly.
unfortunately, the powerBI table visual has no such feature as a row-level checkbox, so I'm looking for a workaround here.
I thought maybe to bring the employee unique list in a separate table,
then build a slicer with checkboxes over it, and write a new measure in the main table that taking ProductB instead of ProductaA whenever the employeeID checkbox is ticked.
here is the desired result, can someone lead me on how to accomplish this?

 

4 Replies

    • Adidas's avatar
      Adidas
      Icon for Helper I rankHelper I

      Thanks, amitchandak 
      the measure is working great!
      however, is there a way to avoid the typical behavior of a power bi slicer
      that "no selection" means "all selections"?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Of course, there is. Just use the ISFILTERED function.