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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rodrigoalmeidad
New Member

Dias úteis no mês

Olá!

Gostaria de saber como contar, no Power BI (utilizando DAX), os dias úteis de um mês, desde o seu primeiro dia até o dia corrente.

Supondo que estamos no dia 24/11/2017 e contando a partir de 01/11/2017 temos neste período 16 dias úteis (exceutando-se feriados e finais de semana). Como fazer este cálculo?

 

Obrigado antecipadamente.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@rodrigoalmeidad,

 

You may create a calendar table and try using FILTER Function and COUNTROWS Function.

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@rodrigoalmeidad,

 

You may create a calendar table and try using FILTER Function and COUNTROWS Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Conseguiu resolver esta questão? To precisando dessa solucao, ja usei Datediff, countrows etc e não consegui chegar nessa solucao...

DIAS_UTEIS = CALCULATE(COUNTROWS(Calendario);CALENDARIO[DIAS_UTEIS_FERIADOS] > 0 && CALENDARIO[DIAS_UTEIS_FERIADOS] < 6)
 
Essa eu consigo trazer os dias uteis do mes todo, ja com tabela de feriados, mas to precisando dias uteis no mes até a data corrente!

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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