Jason Alshouse Posted February 14, 2019 Share Posted February 14, 2019 Current statement is looking at day 1 production vs. day 0. 1 - ((case when Sum(If([Production Day]=1,[Gas],null))>Sum(If([Production Day]=0,[Gas],Null)) then 1 else 0 end) / UniqueCount([jobId])) How can I write it to to look at day 1, day 2, and day 3 production vs. day 0 Link to comment Share on other sites More sharing options...
Shuting Fu Posted February 22, 2019 Share Posted February 22, 2019 Try this - 1 - ((case when Sum(If([Production Day]=1 or [Production Day]=2 or [Production Day]=3,[Gas],null))>Sum(If([Production Day]=0,[Gas],Null)) then 1 else 0 end) / UniqueCount([jobId])) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now