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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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