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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
chathacc
Frequent Visitor

Measure to Count Consecutive Days

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/TmAccountNumber of Consecutive
1/1/2020 16:58:3213348920
11/2/2020 7:27:2683174043
11/3/2020 6:09:2083174043
11/4/2020 7:43:1083174043
9/2/2020 7:26:0890831472
9/2/2020 19:06:0890831472
4/2/2020 7:24:5798732384
4/3/2020 6:50:3698732384
4/4/2020 7:43:1098732384
4/5/2020 8:52:5498732384
3 REPLIES 3
Fowmy
Super User
Super User

@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 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


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. 

amitchandak
Super User
Super User

@chathacc , I have a blog where I approached this a new column for two dates. See if that can help you

 

https://community.powerbi.com/t5/Community-Blog/Power-BI-Continuous-Streak-With-One-Day-Break/ba-p/1...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.