-1

A field in my cube contains numerical values which I would like transformed and displayed as text.

For example

1 is a sale 2 is a return

etc

Is a named caculation best?

SQ-what
  • 49
  • 5

1 Answers1

0

Easiest way to do this would be with a case statement,

SELECT 
   CASE someValue
      WHEN 1 THEN 'sale' 
      WHEN 2 THEN 'return' 
   END
FROM MyTable ;
Colin
  • 91
  • 7