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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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