Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am hoping someone can help me identify a way to create a measure that can identify the number of consecutive date/time stamps that occur for a given account. I am hoping to create a bar chart that shows the number of accounts for consecutive days. I have reviewed other cases, but I am having trouble editing the dax for what I need. Any assitance that can be provided is appreciated.
| Date/Tm | Account | Number of Consecutive |
| 1/1/2020 16:58:32 | 1334892 | 0 |
| 11/2/2020 7:27:26 | 8317404 | 3 |
| 11/3/2020 6:09:20 | 8317404 | 3 |
| 11/4/2020 7:43:10 | 8317404 | 3 |
| 9/2/2020 7:26:08 | 9083147 | 2 |
| 9/2/2020 19:06:08 | 9083147 | 2 |
| 4/2/2020 7:24:57 | 9873238 | 4 |
| 4/3/2020 6:50:36 | 9873238 | 4 |
| 4/4/2020 7:43:10 | 9873238 | 4 |
| 4/5/2020 8:52:54 | 9873238 | 4 |
@chathacc
Can you provide the expected outcome based on the sample data you have shown?
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I am trying to get the Number of Consecutive column. And then I will use that to make a bar chart.
@chathacc , I have a blog where I approached this a new column for two dates. See if that can help you
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |