Description:
This function converts a given string into "UPPER" case and returns the computed string value as the result.
Syntax: UPPER (text)
Remarks
Example
You can use the UPPER function to convert the text that is given to the function as a parameter. This function can be used in any database where you have stored characters as text values and where you want to convert these text values into Upper Case and return that value as the result of the function. This function displays the given text value as a Upper Case value. The input given to the function can be all Lower Case, or mixed Upper and Lower Case, it doesn't matter, whatever the input value, the function will uniformly convert the case of the text value to "Upper".
=UPPER ("A") |
-Upper Case of the specified string ("A") |
=UPPER ("peNNsylvaNIa") |
-Upper Case of the specified string ("PENNSYLVANIA") |
=UPPER ("upper") |
-Upper Case of the specified string ("UPPER") |
Note: A number supplied within double quotes will be taken as a string parameter.
Let us take the example of a database in PowerOLAP where we have certain text values for name, last name, city, country etc., and we need to access and / or manipulate these text values and arrive at results with different permutations and combinations. We shall use this example in this case to ascertain the UPPER value based on the information provided by the "Continent" member that has the value for names of the cities which values are supplied to the function. In this case, we have written a formula in the appropriate cube in PowerOLAP, pulling in the value from the "Continent" member and then writing that value to this formula in order to calculate the result of the "UPPER" function.
The formula above writes values into the "StringDataFunctions" cube to the "String Data Manipulations" dimension into the member named "UPPER" by calculating the lower case value for the parameter specified deriving the base from the "Continent" member in the "String Values" dimension which forms the parameter supplied to this function and its for this parameter that the corresponding "Upper Case" value is returned.