Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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!
@za , Try a measure like
averageX(summarize(filter(Table, table[current balance]>0), table[ticket] ,"_1", datediff(today(), min[ticket date], date)),[_1])