Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I have three columns that I want to use as input for a ranking (analysis of beacon data).
This is what I have (heading in black), and what I want to create (heading in red😞
| Timestamp rank (because of duplicates) | Timestamp difference (next timestamp) | Area | Rank I want to create |
| 1 | 1 min | Area 1 | 1 |
| 1 | 1 min | Area 1 | 1 |
| 2 | 4 hours | Area 1 | 1 |
| 3 | 20 min | Area 1 | 2 |
| 4 | 20 min | Area 3 | 3 |
The rule is; the rank should change if the timestamp difference is > 3 hours OR if the area changes.
Can anyone help me with this?
Thanks
One point to clarify, according to your rules, shouldn't Timestamp rank 2 create a new rank in your calculation since the timestamp difference is 4 hours?
Hi smoupre - Thanks for your question.
The "timestamp difference" I created is the difference between the timestamp-value for the next rank (column A) and the timestamp value for the current row. Based on this, the next rank in the calculation should be given to rank+1 if the difference is over 3 hours.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 20 | |
| 14 | |
| 13 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 40 | |
| 39 | |
| 39 | |
| 38 |