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
Gouthami_22
New Member

Find the delay in course development milestone when only Planned delivery date is available

Hi All,

 Sample data to track the delays

Course NumberMilestoneEstimated delivery dateActual delivery date
Course11a1/1/20181/10/2018
 1b1/5/20181/15/2018
 2a2/8/20182/10/2018
 2b2/15/2018 
 3a3/22/2018 
 3b4/1/2018 
 4a5/22/2018 
    
    

 

This is sample data for only one course. Similarly I have multiple courses.

1. All courses should be tracked at one glance. 

In the above example 2b milestone delay also should be calculated.

Requirement:

Would like to track all the courses and each milestones delay. 

This is how  they would like to see the line graphThis is how they would like to see the line graph

Though the Actual date for Current milestone(2b) is not present, we should calculate the delay with todays date and project that delay in the visual. 

We tried with line chart but it's expecting a value and only course is being tracked at a time.

1.Please suggest the best visual that suits the requirement.

2. Dax to calcuate the current milestone delay with today.
3. Other milestones delay is not required which are empty for actual delivery date.

1 REPLY 1
mahoneypat
Employee
Employee

Please check out the As Timeline visual in AppSource.  Here is what it would look like with your sample data (for the one course, with the Stacked format option turned off).  You can also add a calculated column with the delay in days to your table with the expression below, and put it in the Overlay field well of the visual to show the delay.

 

mahoneypat_0-1597451552816.png

 

Delay Days = var estdate = Milestones[Estimated delivery date]
var actdate = Milestones[Actual delivery date]
return IF(ISBLANK(actdate),IF(estdate<=TODAY(), DATEDIFF(estdate, TODAY(), day)),DATEDIFF(estdate, actdate, day))
 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.

Top Solution Authors