cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to count the number of repeated rows in story table

tara_shi
Discoverer
0 Likes
291

Hello there! ~

I face issue as below, if someone can help me here.

My original story table contains first 3 columns similar as below table, as there are repeated "category", so I would like to add a new column at last to count the repeated row number for the same "category", as in story table, there is no "count if" formular, and i tried create new measure with "aggregation" count, it still doesn't work.

BTW: I cant have calculation in data model, as this is live data, it doesn't allow me to edit.

Thank you very much for the help, and if I didn't make myself clear, I can explain more on this.

 

CategorySub-categoryamount of sub-categorycount of category
fruits peach23
fruits watermelon33
fruits apples53
booksmagazine12
bookschildren book42
Snackschips34
Snackscandy64
Snacksbread24
Snacksbiscuits14

Accepted Solutions (0)

Answers (1)

Answers (1)

N1kh1l
Active Contributor
0 Likes

@tara_shi 

May be you could try COUNTDIMENSION on category  in story calculation with calculation Type aggregation.

 

Nikhil

tara_shi
Discoverer
0 Likes
Thanks, I tried this, I think the caculation itself has no issue, the issue was found by our IT guy in model.