Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Progress Tracker

Hi,

 

I would like to use a visual that would let me track the progress of the activities by area and be able to see the following criteria:

 

  • If the activity started on the date suggested
  • How much progress has been made after it started
  • If the activity is over due or not
  • If the whole project is over due

this is the table that shows the tasks assigned to each area:

 

AreaTaskEstimated DaysBegin Date
LogisticsShip Parts78/27/2020
MaintenanceRepair Engines219/3/2020
OperationsDrill Well569/24/2020

 

The due date for the whole project is 9/24/2020.

 

Thanks!

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    Create something like this.

     

    Calculated Column

    ESTIMATED START DATE1 =
    VAR prevdate =
        CALCULATE (
            MAX ( 'Table'[Begin Date] ),
            FILTER (
                'Table',
                'Table'[Begin Date]
                    < EARLIER ( 'Table'[Begin Date] )
            )
        )
    VAR est =
        CALCULATE (
            MAX ( 'Table'[Estimated Days] ),
            FILTER (
                'Table',
                'Table'[Begin Date] = prevdate
            )
        )
    RETURN
        est + prevdate

     

     

    Measures

     

    Did it start on Estimate Date =
    VAR _datediff =
        DATEDIFF (
            MAX ( 'Table'[ESTIMATED START DATE1] ),
            MAX ( 'Table'[Begin Date] ),
            DAY
        )
    RETURN
        IF (
            _datediff = 0,
            "Yes",
            "No"
        )

     

    Overdue =
    VAR _datediffactivitybeginend =
        DATEDIFF (
            MAX ( 'Table'[Begin Date] ),
            MAX ( 'Table'[End Date] ),
            DAY
        )
    RETURN
        IF (
            _datediffactivitybeginend
                > MAX ( 'Table'[Estimated Days] ),
            "Overdue",
            "On-Time"
        )

     

     

    Project Overdue = 
    var _beginactivity = CALCULATE(MIN('Table'[Begin Date]),ALL('Table'))---Date of 1st Task of project
    var _endactivity = CALCULATE(MAX('Table'[End Date]),ALL('Table'))
    
    var _datediffactivitybeginend = CALCULATE( DATEDIFF(_beginactivity,_endactivity,DAY))
    
    RETURN
    
    IF(_datediffactivitybeginend <= SUM('Table'[Estimated Days]), "On-Time","OverDue")

     

     

     

     

     

    Regards,
    Harsh Nathani

    Appreciate with a Kudos!! (Click the Thumbs Up Button)
    Did I answer your question? Mark my post as a solution!

  • Hi Anonymous ,

     

    Maybe you can do like this.

    IF suggested date = 
    IF(
        MAX(Sheet5[Begin Date]) = DATE(2020, 8, 27),
        "Yes", "No"
    )
    How much progress = 
    CALCULATE(
        COUNT(Sheet5[Task]),
        ALLEXCEPT( Sheet5, Sheet5[Task])
    )
    If the activity is over = 
    VAR x = 
    DATEDIFF(
        MAX(Sheet5[Begin Date]),
        MAX(Sheet5[End Date]),
        DAY
    )
    RETURN
    IF(
        x > MAX(Sheet5[Estimated Days]),
        "Yes", "No"
    )
    If the whole project is over due = 
    VAR x = 
    DATEDIFF(
        MAX(Sheet5[Begin Date]),
        MAX(Sheet5[End Date]),
        DAY
    )
    RETURN
    IF(
        x > 84,
        "Yes", "No"
    )

    But to be honest, your data lacks completeness. If this is not what you want, please provide a more complete data table, including more key columns and duplicate rows.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Thanks for posting, but can you share logic for each calculation.

     

    Regards,

    HN

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello,

       

      Right now I do not have any measures or anything else built for this report.

       

      What I am looking for is for measures and visuals that would help me show that the tasks assigned to Maintenance have a limit of days to be completed and are necessary for Operations to begin with their tasks assigned. Also, for logistics to begin working on their tasks, Maintenance and Operations should all be done with everything assigned to them.

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

         

        I meant this

         

         

        • If the activity started on the date suggested   --> What is the Suggested Date?
        • How much progress has been made after it started  --> HOw do you track progress??
        • If the activity is over due or not  --> What is the logic for overdue date?  How to check if it is overdue? 
        • If the whole project is over due  

         

        Share some more details and also the expected output you would want to see.

         

        Regards,

        HN

         

  • v-lionel-msft's avatar
    v-lionel-msft
    Community Support

    Hi Anonymous ,

     

    Maybe you can do like this.

    IF suggested date = 
    IF(
        MAX(Sheet5[Begin Date]) = DATE(2020, 8, 27),
        "Yes", "No"
    )
    How much progress = 
    CALCULATE(
        COUNT(Sheet5[Task]),
        ALLEXCEPT( Sheet5, Sheet5[Task])
    )
    If the activity is over = 
    VAR x = 
    DATEDIFF(
        MAX(Sheet5[Begin Date]),
        MAX(Sheet5[End Date]),
        DAY
    )
    RETURN
    IF(
        x > MAX(Sheet5[Estimated Days]),
        "Yes", "No"
    )
    If the whole project is over due = 
    VAR x = 
    DATEDIFF(
        MAX(Sheet5[Begin Date]),
        MAX(Sheet5[End Date]),
        DAY
    )
    RETURN
    IF(
        x > 84,
        "Yes", "No"
    )

    But to be honest, your data lacks completeness. If this is not what you want, please provide a more complete data table, including more key columns and duplicate rows.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    • v-lionel-msft's avatar
      v-lionel-msft
      Community Support

      Hi Anonymous ,

       

      Has your problem been solved?

       

      Best regards,
      Lionel Chen

      If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.