Forum Discussion

Jacy's avatar
Jacy
Frequent Visitor
9 years ago
Solved

Date filter

I have two tables without a relationship, one with dates and another with a date and movements, I need that when I filter several dates in the isolated table, those dates are filtered on the move. But there can be no internal relationship between them.

ex:i  CALCULATE(count(Funcionarios[DateAdm]);
FILTER(Funcionarios;Funcionarios[DateAdm] ...... Has to be the same as the dates I select in another table

  • Jacy,

     

    You may refer to the following DAX.

    Measure =
    CALCULATE (
        COUNT ( Funcionarios[DateAdm] ),
        FILTER ( Funcionarios, Funcionarios[DateAdm] IN ALLSELECTED ( Table2[Date] ) )
    )
    

1 Reply

  • v-chuncz-msft's avatar
    v-chuncz-msft
    Community Support

    Jacy,

     

    You may refer to the following DAX.

    Measure =
    CALCULATE (
        COUNT ( Funcionarios[DateAdm] ),
        FILTER ( Funcionarios, Funcionarios[DateAdm] IN ALLSELECTED ( Table2[Date] ) )
    )