Forum Discussion

jbrolland's avatar
jbrolland
Frequent Visitor
5 years ago

How to include closed items in the stacked column chart?

Hello

I have the below data

 

STATUSOpened Year and MonthClosed Year and Month
DONE2021-12021-1
DONE2021-12021-2
ONGOING2021-1 
DONE2021-12021-2
DONE2021-12021-1
DONE2021-12021-3
ONGOING2021-1 
ONGOING2021-1 
DONE2021-12021-2
DONE2021-12021-3
DONE2021-12021-1
DONE2021-12021-2
ONGOING2021-1 
DONE2021-12021-2
DONE2021-12021-1
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-2
DONE2021-22021-4
ONGOING2021-2 
DONE2021-22021-2
ONGOING2021-2 
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-3
DONE2021-12021-2
DONE2021-12021-2
DONE2021-22021-1
ONGOING2021-1 
DONE2021-22021-2
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-4
DONE2021-32021-3
DONE2021-32021-4
DONE2021-22021-3
DONE2021-32021-4
DONE2021-32021-4
ONGOING2021-2 
ONGOING2021-3 
DONE2021-32021-3
DONE2021-32021-3
ONGOING2021-3 
ONGOING2021-3 
DONE2021-32021-1
DONE2021-32021-1
ONGOING2021-3 
ONGOING2021-3 
ONGOING2021-3 
ONGOING2021-3 
ONGOING2021-3 
NOT FIXED2021-3 
ONGOING2021-4 
ONGOING2021-4 
DONE2021-42021-4
ONGOING2021-4 
ONGOING2021-4 
ONGOING2021-4 
ONGOING2021-4 

 

I am trying:

  • to have columns which represent the number of open incident per month (this I can actually do it, cf below)
  • to insert within those columns the number of closed incident per month (this I cannot, I am always ending with the wrong number of DONE and ONGOING)

How can I achieve this? I have tried many things but I am clueless

 

 

7 Replies

    • Ashish_Mathur's avatar
      Ashish_Mathur
      Icon for Super User rankSuper User

      Hi,

      I'd like ot help but i think your data is incomplete.  Shouldn't there be a Customer or Vedor or Project column as well in your dataset?

      • jbrolland's avatar
        jbrolland
        Frequent Visitor

        Sorry I missed your answer.

        Well not really cause this is incidents cases so except incident description (which is different for every single row) there is not much to add.

         

         

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi jbrolland ,

    Please correct me if I wrongly understood your question.

    For STATUS=DONE ,there are two dates , one is Opened Year and Month and other is Closed Year and Month . So if you use different date to count ,you will get different results . If you put different dates and different status in the same visual, the displayed results will be more complicated .My suggestion is creating two visuals to display the counts of two dates .

    I create measures to count different status .

    ONGING = CALCULATE( COUNTA('Table'[STATUS]),FILTER('Table','Table'[STATUS]="ONGOING" ))

    NOT FIXED = CALCULATE( COUNTA('Table'[STATUS]),FILTER('Table', 'Table'[STATUS]="NOT FIXED"))

    DONE = CALCULATE( COUNTA('Table'[STATUS]),FILTER('Table','Table'[STATUS]="DONE"))

     

    Then create two clustered column chart visuals ,like this


     

    Best Regards

    Community Support Team _ Ailsa Tao

     

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

    • jbrolland's avatar
      jbrolland
      Frequent Visitor

      Thanks Ashish_Mathur  for taking time to answer my question.

      Opened Year and Month and Closed Year and Month having matching values, isn't it possible to put everything on the same graph?

       

      PS: How did you format to obtain YYYY-Month format on the X axis ?

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        You are welcome.  It is possible.  Please provide the information i requested for in my previous message.