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.
I have a table which looks like the below.
This details actions taken for finance applications, where there can be multiple action types per application. The application ID identifies the application. Each action is timestamped, has a type and a person who carried it out. In the example above you can see two applications and the actions in sequence from Application Start to Paidout.
What I would like to figure out is how I can measure the difference in time between certain action types to use for reporting. As an example, I would like to know how to know the average time taken from 'Application Start' to 'Paidout'. I would filter this on a page by user or datetime perhaps.
What DAX would help me to achieve this?
@m_richardson , Try like
Measure =
var _min = calculate(min(Table[Date Time], allexcept(Table, table[Application ID]), filter(Table, Table[Application Type] = "Application Start"))
Var _max = calculate(max(Table[Date Time], allexcept(Table, table[Application ID]), filter(Table, Table[Application Type] = "Paidout"))
return
averagex(Values(Table[Application ID]), datediff(_min, _max, minute))
Apologies for the delay, but this doesn't work. The parentheses don't match up, and I'm getting an error that MIN only needs two arguments passing to it.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |