Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Count of emails by categories from present row to the previous rows of the category

Hey guys,

I need help. I would have to count the emails by categories, but I don't know how to count ir from the present row to the previous in the same category email.

 

For example, I have 6 emails (RRHH[emails] from 3 different categories:

 

xavipp@gmail.com (Count the present email. Result1)

xavipp@gmail.com (Count the present mail and the previous. Result:2)

xavipp@gmail.com (Count the presnet mail and the 2 previous. Result 3)

marcpp@gmail.com (Count the present mail. Result 1)

marcpp@gmail.com (Count the present mail and the previous. Result:2)

reivaxpp@gmail.com Count the present mail. Result 1)

 

Thanks!!

1 ACCEPTED SOLUTION
AnkitKukreja
Super User
Super User

Hi @Anonymous 

 

It's achievable, but would request you to share the pbix file for some ss of your data so that i can provide you with better solution.

 

Thanks,
Ankit Kukreja

Linkedin 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

View solution in original post

2 REPLIES 2
AnkitKukreja
Super User
Super User

Hi @Anonymous 

 

It's achievable, but would request you to share the pbix file for some ss of your data so that i can provide you with better solution.

 

Thanks,
Ankit Kukreja

Linkedin 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
lbendlin
Super User
Super User

what's your index column (the one that guarantees the sort order)? 

 

You can use that column to identify the switchover from one email to another.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.