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
Syndicate_Admin
Administrator
Administrator

Problems with the difference of days between dates with times

Dear community, I have a small problem that I have not been able to solve.

I have a dataset that contains a creation date column (date where a request is generated) and a resolution date (date where a request is resolved), both columns contain the corresponding date and time. The problem is that I need to create a new column that gives me the difference in working days (Monday to Friday) and also does not consider non-working days or holidays.

An important point to consider is that the difference in days should be kept in decilames.

As an example:

AlexisCab1602_0-1648489858064.png

In row 5, 6 and 7 the working days discount Saturday and Sunday. And in row 8 and 9 it is discounted on Friday (since it is non-work or holiday), Saturday and Sunday.

I would be interested in generating this column both in Power Query and with DAX formulas, but retaining the decimals since it is relevant to keep the data of the time when the requests are generated.

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Syndicate_Admin ,


Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

You can refer to the following article, which describes how to calculate the working days excluding weekends.

refer:

https://community.powerbi.com/t5/Desktop/Difference-between-dates-considering-only-working-days/td-p...

 

 

Best Regards

Lucien

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.