Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

All/Removefilters not working with dates

Hello, I'm trying to count the number of distinct dates. The result should be 9 (see table below).     1) I tried the measure below, but the result is only the distinct count for each month,...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    There are a variety of ways to deal with this.

     

    One option would be something like this:

    Mesure2 =
    IF (
        ISEMPTY ( Table1 ),
        BLANK (),
        CALCULATE ( DISTINCTCOUNT ( Table1[Date] ), REMOVEFILTERS ( 'Date' ) )
    )