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! Learn more

Reply
android1
Post Patron
Post Patron

Grouping Consecutive dates as 1 entry

Hi,

 

I have the table below which shows dates people were off sick. Problem is there is no Start & End date, just one continous date.

So if someone is off e.g 04/05/06 ie 3 consecutive days then this is 1 entry. 

I'd like to show how many times someone was sick rather than how many days. 

Below pic hopefully makes it clearer.

 

2018-07-12 14_33_26-Sick Leave - Power BI Desktop.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@android1,

Please check if the DAX in the following pbix file works.

https://1drv.ms/u/s!AhsotbnGu1NolB5o0Fh0J0Jdo1f-

Regards,
Lydia

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@android1,

Please check if the DAX in the following pbix file works.

https://1drv.ms/u/s!AhsotbnGu1NolB5o0Fh0J0Jdo1f-

Regards,
Lydia

Hi,

I’m dealing with the exact same problem. Is the solution available somewhere? The file on one drive is not accessible.

/M

Im having a similar issue. is this file still available? It says it may have been moved/deleted

Hi Lydia,

 

Thanks for the feedback. Getting some unexpected results.

 

https://www.dropbox.com/s/spvmubg2w8bvzni/Sick%20Leave%20WIP.pbix?dl=0

 

Hi @Anonymous,

 

No, you're solution was perfect. Thank you very much for your work. Excellent.

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.

Top Solution Authors