Forum Discussion

sweidlich's avatar
sweidlich
Advocate II
7 years ago
Solved

Legend affecting how filter is behaving

I feel like this should be easy, but Powerbi is not behaving how I am expecting.   I have 3 columns of data: 1) UniqueID 2) Location 3) Presence/Absence of Trait (in "yes" or "no").   But some...
  • d_gosbell's avatar
    7 years ago

    From your description it sounds like you want to ignore the Presence/Absence column when doing the distinct count. You could do this with an expression like the following:

     

    CALCULATE( DISTINCTCOUNT( Table1[UniqueID] ) , ALL( Table1[Presence/Absence of Trait (in "yes" or "no")] ) )