Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
ryanfliehman
Contributor II
Contributor II

Calculating 3 month Rolling Average w/ If Statement

Hello,

I'm trying to figure out how to calculate a 3 month rolling average for a turnaround time in a combo vizlib chart using MonthYear as my X-Axis.

Below is the criteria I used to come up with the average by month but when trying to calculate a 3 month rolling average using the criteria below I run into issues. Any help would be greatly appreciated. criteria. 

Avg(If([ENCOUNTER.PATIENT CLASS]='Emergency' and Match([Procedure.Code],'LAB8581'),[LAB TEST.FIRST FINAL VERIFIED INSTANT]-[ENCOUNTER.ADMISSION INSTANT]))

Labels (2)
0 Replies