Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Formula com filtro de data

Solicito ajuda para identificar a forma correta de inserir o valor de uma data em DAX 

 

calc = CALCULATE(DISTINCTCOUNT(historico[CHAPA]),historico[NOVASITUACAO] <> "D", historico[DATAMUDANCA]= 1976-10-19 )
 
 
neste caso o filtro da data não trás resultado correto
  • Hi Anonymous ,

     

    Please try:

    calc = CALCULATE(DISTINCTCOUNT(historico[CHAPA]),FILTER(historico,historico[NOVASITUACAO] <> "D"&& historico[DATAMUDANCA]= DATE(1976,10,19) ))


    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    5 years ago

    Bom dia, 

     

    Deu certo, muito obrigado pelo auxilio. 

     

     

2 Replies

  • V-lianl-msft's avatar
    V-lianl-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    Please try:

    calc = CALCULATE(DISTINCTCOUNT(historico[CHAPA]),FILTER(historico,historico[NOVASITUACAO] <> "D"&& historico[DATAMUDANCA]= DATE(1976,10,19) ))


    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Bom dia, 

       

      Deu certo, muito obrigado pelo auxilio.