Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
lorran
Frequent Visitor

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
2 ACCEPTED SOLUTIONS
V-lianl-msft
Community Support
Community Support

Hi @lorran ,

 

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.

View solution in original post

Bom dia, 

 

Deu certo, muito obrigado pelo auxilio. 

 

 

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @lorran ,

 

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.

Bom dia, 

 

Deu certo, muito obrigado pelo auxilio. 

 

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.