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