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
Almercie
Frequent Visitor

How do I count filtered records between two date columns

This is an issue I attempting to solve and haven't been able to find any resources on. I'd like community feedback on how best to solve this scenario.

Scenario: I need a daily count of open IT Tickets 10 days or older. I'm given a unique ticket number, creation date, and resolution date. 

Example Table:

 TicketNumber CreationDate ResolveDate
4510011/1/202211/16/2022
4514511/2/202211/11/2022
4518611/2/202211/13/2022
4518711/2/202211/12/2022
4522711/3/202211/11/2022
4530411/3/202211/12/2022
4534711/3/202211/17/2022
4537811/3/202211/13/2022
4541911/4/202211/17/2022
4542311/4/202211/9/2022
4549711/4/202211/9/2022
4551511/5/202211/14/2022
4558811/7/202211/13/2022
4560011/8/202211/17/2022
4570011/8/202211/15/2022
4571111/8/202211/21/2022
4571611/9/202211/19/2022
4574311/10/202211/23/2022
4574711/12/202211/17/2022
4578511/13/202211/28/2022
4579711/13/202211/25/2022
4580411/13/202211/24/2022
4584911/15/202211/24/2022
4586911/16/202211/29/2022
4593911/17/202211/25/2022
4598011/19/202212/3/2022
4598311/19/202211/28/2022
4598411/20/202212/2/2022
4599011/20/202211/26/2022

 

 

Expected Result:

AgedTicket_Ct  Date
011/1/2022
011/2/2022
011/3/2022
011/4/2022
011/5/2022
011/6/2022
011/7/2022
011/8/2022
011/9/2022
011/10/2022
111/11/2022
211/12/2022
311/13/2022
311/14/2022
311/15/2022
311/16/2022
211/17/2022
111/18/2022
111/19/2022
211/20/2022
211/21/2022
111/22/2022
411/23/2022
311/24/2022
211/25/2022
211/26/2022
211/27/2022
211/28/2022
211/29/2022
211/30/2022
212/1/2022
212/2/2022
112/3/2022
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Almercie , Please check the single-age bucket page in the attached file. This is on HR data, but it will work the same in your case

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Almercie , Please check the single-age bucket page in the attached file. This is on HR data, but it will work the same in your case

 

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.