Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Summarize Text Column in Table to show Total Rows but not Affect Individual Value

I have a table where one of the column is text.

 

I would like to show this on a table and then at the bottom of the column, I want to show total number of rows. To get the total number of rows, I can summarize the column and use COUNT. However, an undesired side effect is, the text values are now replaced with 1.

 

I am expecting this:

 

NameScore
Ann2
Bob3
Cathy5
Dartha7
Eugene11
Total      5                                               28

 

But getting this instead:

NameScore
12
13
15
17
111
Total      5                                               28

 

I would like to keep the name values as is. 

 

 

 

1 Reply

  • PaulDBrown's avatar
    PaulDBrown
    Community Champion

    Anonymous 

    As far as I'm aware, you cannot achieve the result as you are expecting. You can, however, create a measure along the lines of:

    Name count = IF(ISINSCOPE(Table[name]), BLANK(), DISTINCTCOUNT(Table[name]))

     

    which will deliver empty values on the name rows and the count on the "Total" Row.

    not sure if that works for you, but thought it was worth mentioning.