cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Joao_C_Faria
Helper I
Helper I

DAX(COUNTROWS)

Good morning,
I have this DAX formula, 
 
 COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR('Produção'[DataINICIO],'Produção'[DataFIM]),"WORKDAY",if(WEEKDAY([Date],2) >=6,0,1)),[WORKDAY]=1))
 
but I need to add some Saturdays where the company has open, how I do IT?


Thanks,compliments.
 
1 ACCEPTED SOLUTION
PC2790
Super User
Super User

To identify those saturdays when the company is open, you would need a flag as a separate column and then you can use that in your measure.

Instead of Workday = 1, it would be CompanyOpenDay=1

View solution in original post

3 REPLIES 3
Joao_C_Faria
Helper I
Helper I

Thanks it helps very much

 

PC2790
Super User
Super User

To identify those saturdays when the company is open, you would need a flag as a separate column and then you can use that in your measure.

Instead of Workday = 1, it would be CompanyOpenDay=1

Joao_C_Faria
Helper I
Helper I

Sem Título.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors