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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

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

@Anonymous , 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

 

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , 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

 

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.