Forum Discussion

Rygaard's avatar
Rygaard
Icon for Resolver I rankResolver I
7 years ago
Solved

Select / deselect (toggle) 1 specific customer on / off in a simple way

We have around 10K customers one of this 10K we often need to switch off an since it is a hazzle to  have a slicer with 10K customrs, and then hit select all, then deselecting this one in the lower ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi Rygaard

    So you need the default view to be all customers, where you can include/excluse 1 specific customer with a toggle button. I've had this exact problem before, I simply solved it by doing the following:

    - Create a new column in your data with the following DAX: NewColumn = IF(CustomerName = "Customer X"; "Customer X"; "All Customers").

    Now you can create a slicer with this column. The slicer will have 2 values. The "All Customers" value should be ticked by default, where the "Customer X" should not be ticked by default, therefore not including it in the data. Once it is ticked it will include all customers including Customer X. 

    Let me know if this helps!

  • tex628's avatar
    tex628
    7 years ago

    The method with the calculated column is generally something you would do in a dimension table. A table containing only the 10000 distinct customers and their customer related data. If you start creating several column in you main sales table you will proberbly get performance issues eventually.