Forum Discussion
Whitewater100
Solution Sage
4 years agoDays to Complete a process
Hello Community: I am trying to compare the hospitals on how many days does it take on average(Hospital Average) to get thru all four treatments. I will insert link for file with explanation on pa...
- 4 years ago
In Table add colnum
days = if([Step_ID]=1, 1, [Time Out]-LOOKUPVALUE('Table'[Time Out],'Table'[Step_ID],'Table'[Step_ID]-1,'Table'[Patient_ID],'Table'[Patient_ID]) )add measure
aveDays = AVERAGEX(VALUES('Table'[Patient_ID]),CALCULATE(SUM('Table'[days])))
vapid128
Solution Specialist
4 years ago
In Table add colnum
days =
if([Step_ID]=1,
1,
[Time Out]-LOOKUPVALUE('Table'[Time Out],'Table'[Step_ID],'Table'[Step_ID]-1,'Table'[Patient_ID],'Table'[Patient_ID])
)
add measure
aveDays = AVERAGEX(VALUES('Table'[Patient_ID]),CALCULATE(SUM('Table'[days])))Whitewater100
Solution Sage
4 years agoThanks very much. Nice job!