Forum Discussion

bgashok's avatar
bgashok
Helper I
2 years ago
Solved

create new measure to plot saydo

I want to created a below table form Azure and would like to plot a graph with Sprint started Sx in x-axis and calucated measue = (count of True in respective sprint /(Count of True in respective sprint + count of False in respective sprint)). How can it be done?

 

IdStarted sprintClosed sprintcommitted
1S1S1TRUE
2S1S1TRUE
3S1S2FALSE
4S1S1TRUE
5S1S1TRUE
6S1S3FALSE
7S1S1TRUE
8S1S4FALSE
9S1S1TRUE
10S1S1TRUE
11S2S2TRUE
12S2S2TRUE
13S2S3FALSE
14S2S2TRUE
15S2S2TRUE
16S2S4FALSE
17S2S2TRUE
18S2S2TRUE
19S2S5FALSE
20S2S2TRUE
21S3S3TRUE
22S3S4FALSE
23S3S3TRUE
24S3S3TRUE
25S3S5FALSE
26S3S3TRUE
27S3S6FALSE
  • Hi bgashok ,

     

    Try this measure:

    _committed_% = 
    VAR __total = COUNTROWS(yourTable)
    VAR __true =
    CALCULATE(
        COUNTROWS(yourTable),
        yourTable[committed] = "TRUE"
    )
    RETURN
    DIVIDE(__true, __total, 0)

     

    For this output:

     

    Pete

2 Replies

  • Hi bgashok ,

     

    Try this measure:

    _committed_% = 
    VAR __total = COUNTROWS(yourTable)
    VAR __true =
    CALCULATE(
        COUNTROWS(yourTable),
        yourTable[committed] = "TRUE"
    )
    RETURN
    DIVIDE(__true, __total, 0)

     

    For this output:

     

    Pete