Hello,
I am trying to do something like this: I have a column with names of cities:
Richmond
Cleveland
Cleveland
Boston
Cleveland
Boston
I would like a cumulative count down the column in PowerPivot:
Richmond 1
Cleveland 1
Cleveland 2
Boston 1
Cleveland 3
Boston 2
I have tried the following, but it just returns the total count to each matching row:
Thanks in advanced!
I am trying to do something like this: I have a column with names of cities:
Richmond
Cleveland
Cleveland
Boston
Cleveland
Boston
I would like a cumulative count down the column in PowerPivot:
Richmond 1
Cleveland 1
Cleveland 2
Boston 1
Cleveland 3
Boston 2
I have tried the following, but it just returns the total count to each matching row:
Code:
=CALCULATE (
COUNTROWS ( CityList ),
FILTER (
CityList,
CityList[CityName]
= EARLIER ( CityList[CityName]
)
)
)
Thanks in advanced!