Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago

undefined

Hi,

 

I want to count how many duplicate values are in the column. But want this in a calculated column rather that measure.

 

thanks,

5 Replies

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    Anonymous can you give an example of what you asking?  ie.

     

    col 1   calculated column

    1         3

    1         3

    1         3

    2         2

    2         2

     

     

    ?

     

      • vanessafvg's avatar
        vanessafvg
        Community Champion

        Anonymous i can only figure out how to use it in a calculated measure

         

        ie. 

         

        calculate(countx(table, table[column])

         

        will a measure not work for you?  the other way of doing it is to summarize the table and then create a relationship to it

        ie.

         

        summarize (table, table[column], "count" countx(table, table[column]))