Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

help with table and calculation

Hello

 

I am having trouble creating a table or chart that can show me how many people called for the same issue 2 times, 3 times and more than 3 times per month (iN jUNE, JULY and the August) . Thank you so much in advance!

Here is a sample data:


data

I was thinking to show something like this:

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    It'll be much easier if your sample data could be copied and pasted.

    Cheers!
    A

    • Anonymous's avatar
      Anonymous
      Not applicable

       

      I added the same table here:

       

      Issue Name   Date      Person Name

      category 119-JulMavi
      category 219-JulJose
      category 319-JulMiriam
      category 419-JulMiriam
      category 519-JulTom
      category 519-JulTom
      category 519-JulTom
      category 519-JulPaul
      category 119-JunPaul
      category 219-JunCarla
      category 319-JunAna
      category 419-JunAna
      category 419-AugAna
      category 419-AugAna
      category 619-AugJose
      category 619-AugJose
      category 619-AugJose

       

      Thank you!!


      Anonymous wrote:

      Hi Anonymous 

      It'll be much easier if your sample data could be copied and pasted.

      Cheers!
      A


       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous 

        Here are the steps for your requirement:

        1. Create a month number column.

        In edit query mode, add a new column and type this code

        Date.Month([Date])

        2. Add an index column. Under add column menu item, press add index. This is just to show all rows with duplicates.

        3. Create a new custom column. DAX is:

        Count =
        CALCULATE (
            COUNTROWS ( T25 ),
            FILTER ( T25, T25[Issue] = EARLIER ( T25[Issue] ) ),
            FILTER ( T25, T25[Month Number] = EARLIER ( T25[Month Number] ) )
        )

        Now, you have the table with the relevant counter.
        First Solution

         

        Not sure if you want to count individuals or a general number of calls.

        Anyhow, I think this is 90% of the solution if not a whole one.

        Cheers!
        A