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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors