Forum Discussion

davidwoodward's avatar
davidwoodward
Frequent Visitor
6 years ago
Solved

Challenge with my data in Column Chart

I have some data that looks like the following

 

IDDateOpenedClosed
11-Jan10
11-Feb01
21-Jan10
21-Feb01
31-Jan11
41-Jan10
41-Feb01

 

I want a clustered column chart that shows for each Date, a column of Opened items and a column of Closed items.  Except for ID 3 in January where the item is Opened and Closed in the same month I can successfully generate the chart.  Ideas for how to accomplish?

  • Ashish_Mathur's avatar
    Ashish_Mathur
    6 years ago

    Hi,

    Is this the result you want.  Download my PBI file from here.

    Hope this helps.

7 Replies

  • mahoneypat's avatar
    mahoneypat
    Microsoft Employee

    Please try these measure expressions in a visual with the Date column.

     

    Open = SUMX(FILTER(Table, Table[Opened]<>Table[Closed]), Table[Opened])

     

    Closed = SUMX(FILTER(Table, Table[Opened]<>Table[Closed]), Table[Closed])

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat

    • davidwoodward's avatar
      davidwoodward
      Frequent Visitor

      The result was that it excluded all cases where Open and Closed was equal to 1, but I need them included.

       

      I changed the filter to Table[Closed]=Table[Closed] and that worked, but seems like an odd filter.  Should I do that a different way?

       

      First time I've used a Measure, so new terratory for me.  I appreciate your ideas.

    • davidwoodward's avatar
      davidwoodward
      Frequent Visitor

      And, I'm not sure how this helps me.  I basically end up with the same thing I have.  Two columns expressing Opened and Closed.  I don't know how to then chart that into a Clustered Column Chart, showing a Column with the Opened total and a column with the Closed total, for each date.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

        Is this the result you want.  Download my PBI file from here.

        Hope this helps.