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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Ageing Calculation for Closed and Open Incidents based on selected date range.

Hi ,

 

I am looking for solution to calculate ageing for incidents which are active (open or closed) in selected time frame. 

 

Example: following things I have to keep in consider

1. provide date filter with between option

2. calculate @startDate and @endDate from selected slicer value 

3. Created date can be before @startDate but  cannot be after @endDate
4. Closed date should be in between @startDate and @endDate or also null has to be considered (closed date is null means incident is still open)

5. wanted to calculate ageing for Incidents which are closed in between the selected date range = datediff(Create Date, Closed date, Day) 

ageing for open incident by datediff(create date ,  @endDate, day) where create date can be before @startdate

 

Huddles are 

when I use date slicer it is not allowing me to consider create date before @startdate , can anyone please suggest how do I restrict startdate filter for create date so that it should consider the incidents open from historical data.

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Refer the approach in HR Blog

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.