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
za
New Member

Average days outstanding for tickets as of specific date

I am trying to figure out Dax for Average Days Outstanding taking into account all tickets that are open as of spec date to show trend over time. 
How many days tickets are outstanding on average over the period of time and what is days outstanding on tickets as of 8/25/2020? 
Per example below, I have manually calculated in excel the outcome that I am looking for but do not know how to create dax formula to reflect that. As you can see, in my average formula I am taking into consideration all tickets that have current balance >0 as of 8/25/2020 and giving average counting prior rows ( prior tickets open as of 8/25/20). 
Currently, I know to how to calculate DAX days oustanding which is diference between ticket dates and today on tickets with current balance >0 but I do not know how to include in my DAX pror days where tickets are outstanding as well. 

Your help is greatly appreciated!
Sample PowerBI.JPG

1 REPLY 1
amitchandak
Super User
Super User

@za , Try a measure like


averageX(summarize(filter(Table, table[current balance]>0), table[ticket] ,"_1", datediff(today(), min[ticket date], date)),[_1])

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.