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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
deefunk1981
Frequent Visitor

Count of consecutive periods within a 3 month rolling period

Hi,

I am hoping someone might be able to help with a DAX measure.  Below is a snip from a sickness spreadsheet I use to feed a PBI report I am building.  I need a DAX measure that will give me a rolling 3 month count of individual sickess periods.  If you look at Piotr, he is off on long term sickness, this would be counted as 1 period.  Jacky would be counted as 2 as he had 2 individual sickness periods.

Thanks,

David

deefunk1981_1-1692696474372.png

 

 

4 REPLIES 4
deefunk1981
Frequent Visitor

Hi, I have attached some sample data.  Thanks for your help!

deefunk1981
Frequent Visitor
Anonymous
Not applicable

Hi @deefunk1981,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Hi, sample data attached.  Thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.