Jump to content

This topic is 7500 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Didn't tried it but is it possible to use calculations to get the table from say

Min(Substitute(DayRange);"-";"")) so that you can reduce from 60 the number of case statements.

However, I have the feeling the structure you adopted is not appropriate, and that you'd still have slow response time as you're involving cross-related calculations.

Posted

I would think it would be faster to split it up with nested cases, that way, you won't keep rechecking things you already know are true:


Case( Daypart01 = "M-F";

    Case( Start01 = "5a";

       Case( End01 = "6a"; Average(Ratings::mf5a);

                End01 = "7a"; Average(Ratings::mf5a; Ratings::mf6a);

                End01 = "8a"; Average(Ratings::mf5a; Ratings::mf6a; Ratings::mf7a));

             Start01 = "6a";

               Case( End01 = "6a"; Average(Ratings::mf6a);

                        End01 = "7a"; Average(Ratings::mf6a; Ratings::mf7a);

                        ...

This topic is 7500 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.