Forum Discussion
Syndicate_Admin
Administrator
4 years agoDIFFERENT CATEGORY COUNTER
Hello I would like to see if it is possible to perform a counter or index depending on the category.
Hi, Syndicate_Admin
You can try the following methods. First add a column index to the power query.
Count = CALCULATE ( COUNT ( 'Table'[Category] ), FILTER ( 'Table', [Category] = EARLIER ( 'Table'[Category] ) && [Index] <= EARLIER ( 'Table'[Index] ) ) )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- amitchandak
Super User
- v-zhangti
Community Support
Hi, Syndicate_Admin
You can try the following methods. First add a column index to the power query.
Count = CALCULATE ( COUNT ( 'Table'[Category] ), FILTER ( 'Table', [Category] = EARLIER ( 'Table'[Category] ) && [Index] <= EARLIER ( 'Table'[Index] ) ) )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Syndicate_Admin
Administrator
Thank you very much is just what I needed!!