Forum Discussion
AuroraNI
6 years agoHelper III
Create Column counting values in ascending order
Hi, Was hoping people could help. I would like to add a column in Query editor counting the number of times a value appears in a column in ascending order (see below desired output). I have tried ...
- 6 years ago
Hi AuroraNI
Add the index column first, and then add the calculated column:
Column = CALCULATE(DISTINCTCOUNT('Table'[Index]),FILTER('Table',[Country]=EARLIER('Table'[Country])&&[Index]<=EARLIER('Table'[Index])))Pbix attached.
AuroraNI
6 years agoHelper III
Thanks for this answer, I have tried this and works thank you. I will go with the calculated column option as simpler in my current dashboard
Ashish_Mathur
6 years agoSuper User
You are welcome.