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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hongyuliu
Helper III
Helper III

calculate non-working days

I have table to record the time of each machine operation.

Now I need to count how many days the machine doesn't operate in a month. what's the solution? Thank you

Capture·.PNG

6 REPLIES 6
amitchandak
Super User
Super User

@hongyuliu , this one calculates the working date. You just need to reverse the working day flag, rest will work

https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0

 

CheenuSing
Community Champion
Community Champion

Hi ,

Check this if it helps

 

https://community.powerbi.com/t5/Desktop/Getting-all-dates-between-2-dates/td-p/60577

 

Cheers

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
Greg_Deckler
Super User
Super User

I would imagine you would also need an "End" column?

 

Perhaps See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hello

 

thanks for your suggestion.  I got the right figure partly, some are weird. refer following pic. where is wrong?

Capture1.PNGCapture.PNG

@hongyuliu ,Can you share sample data and sample output in table format

I have fixed the problem. Thank you.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.