Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |