Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Help with burndown charts from VSTS data

Can someone please help me find a solution. Nothing I see on these blogs will work. I have historical data from VSTS and need to create a burndown chart. This is Remaining work aggregated by Changed Date and with the Is Current flag.  Please help. o Calender DIM. 

  • Anonymous's avatar
    Anonymous
    8 years ago

    no that does not work because there is no cummulative total just the remaining work at any one point in time. Not a real burndown. 

    I got it to work with the following steps provided as guidance from a friend.

    Step 1: Took the history table and subtracted the “Is Current Values” between True and False records.
    TrueFalseDiff = 
    var remtru = 
    CALCULATE('Work Items - Last 26 Weeks history'[Total Remaining],'Work Items - Last 26 Weeks history'[Is Current] = TRUE)
    var remfls = 
    CALCULATE('Work Items - Last 26 Weeks history'[Total Remaining],'Work Items - Last 26 Weeks history'[Is Current] = FALSE)
    return (remfls-remtru)

    Step 2: Created cumulative total followed by subtracting the true false diff:
    Cumulativetot = 
    var runtot = CALCULATE (
    SUM ( 'Work Items - Last 26 Weeks history'[Remaining Work] ),
    FILTER (
    ALL ( 'Work Items - Last 26 Weeks history'[Changed Date] ),
    'Work Items - Last 26 Weeks history'[Changed Date] <= Max('Work Items - Last 26 Weeks history'[Changed Date] )))
    return (runtot-[TrueFalseDiff])

    Finally I took the categorical line chart and extended the date to the end of my pseudo sprint:
    And wahla.

8 Replies

  • Hi!

    Looks like you are trying to create manual burndown DAX calculation. Since you are querying WorkItemSnapshot, it already has "Remaining Work" column - you can simply plot that by date and get basic burndown, without any DAX.

    • Anonymous's avatar
      Anonymous
      Not applicable

      no that does not work because there is no cummulative total just the remaining work at any one point in time. Not a real burndown. 

      I got it to work with the following steps provided as guidance from a friend.

      Step 1: Took the history table and subtracted the “Is Current Values” between True and False records.
      TrueFalseDiff = 
      var remtru = 
      CALCULATE('Work Items - Last 26 Weeks history'[Total Remaining],'Work Items - Last 26 Weeks history'[Is Current] = TRUE)
      var remfls = 
      CALCULATE('Work Items - Last 26 Weeks history'[Total Remaining],'Work Items - Last 26 Weeks history'[Is Current] = FALSE)
      return (remfls-remtru)

      Step 2: Created cumulative total followed by subtracting the true false diff:
      Cumulativetot = 
      var runtot = CALCULATE (
      SUM ( 'Work Items - Last 26 Weeks history'[Remaining Work] ),
      FILTER (
      ALL ( 'Work Items - Last 26 Weeks history'[Changed Date] ),
      'Work Items - Last 26 Weeks history'[Changed Date] <= Max('Work Items - Last 26 Weeks history'[Changed Date] )))
      return (runtot-[TrueFalseDiff])

      Finally I took the categorical line chart and extended the date to the end of my pseudo sprint:
      And wahla.

      • roizentner's avatar
        roizentner
        New Member

        Hi Anonymous, you forgot to mention where you got [Total Remaining] from...I'm guessing it is also calculated...