Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Count values from date

Hello guys,

 

 

I have a data set here that's like this:

 

IDOpening DataClosing Date
103/06/201803/06/2018
203/06/201804/06/2018
304/06/201805/06/2018
405/06/201805/06/2018
505/06/201805/06/2018
606/06/201806/06/2018
706/06/201806/06/2018
807/06/201808/06/2018
907/06/201808/06/2018
1009/06/201810/06/2018

 

 

What I need to do is, use a graph to represent the number of opening and closed tickets by day. So let's say I drag opening date field to my X axis, when I try to do the count on the date rows, I get wrong values for the closing date.

 

Can anyone help me with that?

 

Thanks!

 

  • Hi,

     

    I believe this is the result you want.  You may download my PBI file from here.  I edited the closing date for ID 9 to June 12.

     

    Hope this helps.

     

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous

     

    How do you calculate the count? Start/ end should be same? For the given above sample data, what is the expected coiunt for each start date?

     

    Thanks

    Raj

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello Anonymous!

       

      I need to count the number of IDs for each date. Each ID represent the date when a ticket was open and closed, so my goal is to have them a graph illustrating how many tickets were open and closed on each day.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

         

        If an ID opened on Jul 1, 2018 and closed on Jul 5, 2018, then i understand the opening and closing dates.  But what about the dates in between?  How should the dates from Jul 2-4 be treated?

         

        Show your expected result in a Table.  Once the table is ready, one can simply switch the result to a graph.