Forum Discussion

ThomasDay's avatar
ThomasDay
Impactful Individual
10 years ago
Solved

Slicer Select All Weirdness

Hello Fellow Dax'ers,   I'm very surprised at the behavior of "Select All" within a slicer.  Here's an example: Build a slicer with Single Select off, Select All on. Cross filter this slicer so t...
  • Anonymous's avatar
    Anonymous
    10 years ago

    Hi MbProg,

     

    According to your description, the Select All feature is enabled for the slicer. When you check multiple individual values in the slicer, the card will display the correct row count values. But if you select all values by checking Select All option, the card displays wrong values, right?

    Below is my test sample:

     

    1. Create a simple table with duplicate records.(Test4 has 4 records, others has one)

     

    1. Create the slicer and the measure.

     

    Measure: Count of Row = COUNTROWS(Test).

    Result:

    1. Choose the ‘select all’.

     

    In summary, the slicer shows the distinct value of column(eg: Name) you placed in the slicer. Maybe some duplicate records are in your table(eg: Test 4), though you choose the 'select all', it will count rows for all records which are related to checked slicer values.

     

    In addition, if you want to get the distinct value of the row, you can try to use below formula:

     

    1. Count of Row = COUNTROWS(DISTINCT(Test[Name]))
    2. Count of Row = COUNTROWS(VALUES(Test[Name]))

     

     

    Regards,

    Xiaoxin Sheng