Im rebuilding some stuff at work and need some advice on what is best from a performance perspective. This cube is going to get big because of an "advanced" idea on how things should be organized.
Consider the two examples:
Example 1:
Code: Select all
['Value'] = N:
IF( !Period <= ['PeriodBreak1'],
['Value1'],
IF( !Period <= ['PeriodBreak2'],
['Value2'],
IF( !Period <= ['PeriodBreak3'],
['Value3'], ['Value4']
)
)
) ;
Example 2:
Code: Select all
['Value'] = N:
IF( !Period <= ['PeriodBreak1'],
['Value1'],
CONTINUE
) ;
['Value'] = N:
IF( !Period <= ['PeriodBreak2'],
['Value2'],
CONTINUE
) ;
['Value'] = N:
IF( !Period <= ['PeriodBreak3'],
['Value3'],
['Value4']
) ;
So does anyone know if Example 1 or Example 2 is better from a performance perspective? Someone thats been doing this a lot longer than I have? I looked around for a best practice but found none.
Regards
David