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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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