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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Working Day Calculation

Hello,

I want to show working day in my report for the production plan.

My Excel file: https://hizliresim.com/78TFVA
In the work days Column, 1 is the meaning working days of the factory, and 0 is the closed day of the factory.

That's what I want it to look like in the report.
https://i.hizliresim.com/cWJ8a3.jpg

In my report, I want to see what work day we are on and how many work days we have left.
Can you help me please?
Regards,
Koray

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

Hi @Anonymous ,

 

We can use the following steps to meet your requirement.

1. Create a measure that calculate the total of work day.

 

total day = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Work Days]=1))

 

2. Create a measure that calculate the remaining work day.

 

remain work day = 
var work_day = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Work Days]=1 && 'Table'[Date]<=TODAY()))
return
[total day]-work_day

 

3. Then we can get the result like this,

 

1working day.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,


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

4 REPLIES 4
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can use the following steps to meet your requirement.

1. Create a measure that calculate the total of work day.

 

total day = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Work Days]=1))

 

2. Create a measure that calculate the remaining work day.

 

remain work day = 
var work_day = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Work Days]=1 && 'Table'[Date]<=TODAY()))
return
[total day]-work_day

 

3. Then we can get the result like this,

 

1working day.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,


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

Anonymous
Not applicable

Is there anyone that can help? 😞

amitchandak
Super User
Super User

Assume April is selected as the slicer

Measure  =

calculate(sum(Table[Working day]),Table[Date]<=today())/calculate(sum(Table[Working day]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello,

 

Thank you for reply. Did not work properly 😞

 

https://hizliresim.com/2nfnfA

 

https://hizliresim.com/YLsu3Q

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.