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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.