Forum Discussion

jbristol's avatar
jbristol
Frequent Visitor
7 years ago

Issues creating stacked column chart for counting created vs. resolved tickets

Hi Everyone,

 

I'm hoping this great community will be able to help me out with a stacked column chart that I am looking to create.  I feel like I have tried everything and still am not getting what I am looking for.

 

The data that I have is data that comes from JIRA and it tracks software tickets.  I am looking to create a stacked column chart that will show the count of the number of created tickets and the number of resolved tickets that are created monthly/year(weekly would be great too).  I would also love to add a trend line if possible to show whether the created tickets are growing faster then we are able to resolve them.  Any help would be greatly appreciated.

 

I have created some mock data to illustrate what I am looking for.

IDCreated DateResolved DateAssignee
1231/2/20185/23/2018James
3451/8/20183/23/2018Mike
6782/4/20184/30/2018Juan
9092/23/20183/21/2018James
8762/24/20187/21/2018Andrew
5433/5/20185/23/2018Jon
2124/9/20186/2/2018Jon
4565/2/20188/3/2018Andrew
7545/30/201810/3/2018James
3466/22/20187/21/2018Juan
6757/3/20189/30/2018Mike
2588/14/201811/23/2018Mike
3549/23/201812/24/2018James
13610/14/20181/3/2019Jon
84211/12/20182/1/2019Sara
26911/15/20184/2/2019James
42612/2/20182/23/2018Mark
8411/5/20193/2/2019Chris
8001/18/20194/3/2019James
5002/3/2019  
6012/13/2019  
3782/14/2019  
4913/25/20194/1/2019Andrew
2034/29/2019  
4915/2/2019  

 

The following is an idea of what I am looking for however the stack columns do not have accurate data(shown in the table).  I would love to see a years worth of trends broken down by month/year.

Incorrect data in stacked columns

 

Thanks, Josh

4 Replies

  • jthomson's avatar
    jthomson
    Solution Sage

    You need to create a calendar table and relate each of your date columns to it. What it's showing now is there's 17 resolved and 3 resolved that were created in 2018 and 2019 respectively

  • TeigeGao's avatar
    TeigeGao
    Solution Sage

    Hi jbristol ,

    In your scenario, we cna create two measure using the following DAX query:

    Measure = CALCULATE(COUNTROWS(Table1))
    Measure 2 = CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[Resolved Date] <> BLANK()))

    Then drag these two measures and Created Date column to the visual, then we will see the count of a year:

    Don't be afraid of it, then we can expand the data of Created Date column, remove the day and quarter.

    Then click the following button:

    The result will like below:

    Best Regards,

    Teige

    • jbristol's avatar
      jbristol
      Frequent Visitor

      Thanks Teige!

       

      Just a questions about the results, In April 2019 there were 3 resolved tickets.  How do I get them to show up on the chart?

       

      Thanks,

      Josh

      • TeigeGao's avatar
        TeigeGao
        Solution Sage

        HI jbristol ,

        I think I have misunderstanded your logic on the resolved tickets, based on my understanding, there is no solved ticket on April.

        Best Regards,

        Tiege