Jason Elkin Posted May 26, 2020 Share Posted May 26, 2020 I've added a calcualted column that sums a time, over three different fields being a property, and two different time categories. The calcualted column looks correct and uses the following expression: time is a real number, and propertyname, timephase1 and timephase2 are strings Sum([time]) OVER ([propertyname],[timephase1],[timephase2]) I've then created a text area and added a dynamic control calculated value. I want to show the average of the sum([time]) expression above for a particluare value of the timephase2 field. The average function works correctly if I don't use a case or if statement.I've attempted various case or if expressions but I either get no value or that the expression is invalid. Current expression being attempted case WHEN [timephase2] ~= "Active" Then Avg([sum([time]]) OVER ([propertyname]], [timephase1]], [timephase2]])]) END I was also curious why the double brackets are used after the column/field name, but have also seen similar functions with just the single bracket after the field name. Let me know if any additional information is needed. Thank you for the help. 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