cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lidderdj
Frequent Visitor

Running Count of Duplicate Values in a column

Hi All, 

 

I have the following data:

Name

Joe

Amy

Mary

Mary

Bob

Amy

Paul

Amy

 

In the query editor, I'd like to add a custom column that throws out a running tally of each duplicate name. That is:

Name

Duplicate tally

Joe

1

Amy

1

Mary

1

Mary

2

Bob

1

Amy

2

Paul

1

Amy

3

 

I've seen solutions to this by adding a measue in modeling, but I can't find anywhere how to do this with a calculated column in the query editor. Is it possible?  

 

- Daniel

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

See this thread.  I think whatever happens you'll need an index or date(if you have it)

https://community.powerbi.com/t5/Desktop/M-Function-calculate-running-total/td-p/358212

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

See this thread.  I think whatever happens you'll need an index or date(if you have it)

https://community.powerbi.com/t5/Desktop/M-Function-calculate-running-total/td-p/358212

View solution in original post

@HotChilli actually this is a bit confusing, can we achieve this usix dax?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!