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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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