Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Using "non-hardcoded" values in a cube calculation/expression

$
0
0

Hi,

Can someone give me some tips on how to use a "non-hardcoded" value in a calculation like this one -

CASE WHEN [Measures].[Potential] >= 7000 THEN 'A' 
        WHEN [Measures].[Potential] < 7000 AND [Measures].[Potential] >= 3000 THEN 'B' ELSE 'C' END

What I'd like to do, is to keep the "7000" and "3000" values in a table so I dynamically get these values when I process the cube. That will make it much easier to change the values because I can then just update the table, rather than having to modify the calculation for each cube that contains this formula.

While still being unexperienced in SSAS/MDX I haven't been able to find any "obvious" solution to this - but I can't image that I'm the first one looking for this..:-).

 


Steen Schlüter Persson (DK)


Viewing all articles
Browse latest Browse all 2472

Trending Articles