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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
mprakash
New Member

How to exclude Saturday and Sunday date in Burndown Chart

Hi All,

 

I have created a burn down chart which i took from custom market place. 

 

I have created planned hours for that, and will be comparing with actual hours to complete it.

 

Capture.PNG

Porvided below the formula for Planned hours to complete.

Planned Hours =
Var SprintStartDate = CALCULATE(FIRSTDATE('Calendar'[Date]),ALLSELECTED(Sheet1))
Var DaysSinceStart = DATEDIFF(SprintStartDate,Max('Calendar'[Date]),DAY)
Var BeginningStart = CALCULATE(MAX(Sheet1[Remaining Hours to complete]),ALLSELECTED(Sheet1))
Var SprintLength = 9
Return
IF(MAX('Calendar'[Date])>= SprintStartDate && MAX('Calendar'[Date])<= SprintStartDate+SprintLength,
BeginningStart - DaysSinceStart * (BeginningStart/SprintLength),BLANK())
 
Now my concern is how to exclude the weekend date in this formula i.e., i have to exclude saturday and sunday, because generally we won't work in weekend.
 
Once we removed then the Planned hours should be a straight line.
 
Please help me on this. Thank in advance.
 
Regards,
Prakash M
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mprakash , you can add filter for weekday('Calendar'[Date],2) <6

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@mprakash , you can add filter for weekday('Calendar'[Date],2) <6

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.