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
Ronald123
Resolver III
Resolver III

Dynamic calculation workingsdays

Hello,

 

I need a measure to calculate the workingsdays dynamic based on a condition.

This condition is based on a slicer. 
Please take a look @ the test file with the expected results.

Greets,
https://1drv.ms/u/s!An5X7wdH9O9ejkV1DFpGsk1xfF2e


Ronald

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Ronald123 ,

 

There is a detailed blog on this on how you can calculate working days using start date and end date:

https://blog.enterprisedna.co/calculate-workdays-between-two-dates-in-power-bi/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

6 REPLIES 6
Pragati11
Super User
Super User

Hi @Ronald123 ,

 

There is a detailed blog on this on how you can calculate working days using start date and end date:

https://blog.enterprisedna.co/calculate-workdays-between-two-dates-in-power-bi/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helle @Pragati11 ,

I got stuck on the dynamic END DATE based on the slicer [disconnected table].
Could you take a look @ the Test file?

Greets,

 

Ronald

Hi @Ronald123 ,

 

I don't understand what you want me to look at. I see the following in your testfile:

Pragati11_0-1614268025312.png

 The blog I shared doesn't talk about any disconnected table.

Please be detailed on what issue you are facing.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 

My bad, i don't know how to implement below condition in the code from the blog.
Could you help me to make the measure in the test file?

Greets,

Ronald

 

Variable condition

 

END DATE IF ( Date Slicer < END DATE then SLICER else END DATE

Hi @Ronald123 ,

 

Apologies for not responding earlier as somehow I didn't get a notification for your above response.

Were you able to resolve the issue?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 ,

My way of thinking was wrong, thanks for put me on the right track.

Greets,

Ronald


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.