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
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
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.