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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
noodles281
Frequent Visitor

Calculated Column required to evaluate maximum number of consecutive events attended

I'm going around in circles with this now. So posting on here to see if a fresh pair of eyes will solve it. Thank you so much for your attention and participation.

 

Events take place, and people attend these. I have attended each event and would like to know how many consecutive events any participant has had and who is on the longest current streak (so involving the most recent event). All my thoughts suggest this should be a calculated column either in the EVENTS table or the PARTICIPANTS table. Still, I can't work out a way to increment the count, so the consecutive attendances are counted properly.

In my mind, the result should be in one of these two formats.

 

EVENTS

EventNumberPersonIDConsecutiveCount
1661
2662
3663
566 
666 
766 
8661
10662
1266 
1366 
14661
16662
17663
2066 
2166 
1481
248 
3481
448 
748 
8481
9482
10483
11484
12485
1448 
1548 
1648 
1748 

 

or

 

PARTICIPANTS

PersonID

Consecutive Count

663
485

 

Download the EVENTS table ( contains EventNumbers and PersonID)

https://geordieintelligence-my.sharepoint.com/:f:/g/personal/ross_geordieconsulting_co_uk/EiPMJAmWVP... 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture2.png

 

Link to the PBIX file 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Picture2.png

 

Link to the PBIX file 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Thank you, a couple of tweaks and it's now in as a calculated column so I can more easily use it for the metrics, people want to quickly see who's currently holding the consecutive attendance record etc... Massive help and glad to see I wasn't a too far off either 👍

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.