Skip to content

Bug on D3 page - Average calculation? #52

Answered by nbrown02
Karloyski asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately not - the statuses table pulls back the statuses for a project which maps to the To Do / In Progress / Done status categories.

There is no way within the API to do this - the only way would be to add more statuses table (one for each project) and append them.

My advice would be that if you are just wanting to fix the Avg cycle time number, use this measure calculation:

Average Cycle Time = 
VAR UniqueCycleTimes = 
    SUMMARIZE (
        'WorkItems History',
        'WorkItems History'[IssueID],
        "Cycle Time", MAX('WorkItems History'[CycleTimeDays])
    )
RETURN
    AVERAGEX(UniqueCycleTimes, [Cycle Time])

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
7 replies
@nbrown02
Comment options

@nbrown02
Comment options

@Karloyski
Comment options

@nbrown02
Comment options

Answer selected by Karloyski
@Karloyski
Comment options

@nbrown02
Comment options

Comment options

You must be logged in to vote
6 replies
@Karloyski
Comment options

@nbrown02
Comment options

@Karloyski
Comment options

@nbrown02
Comment options

@nbrown02
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants