/usr/share/doc/libmondrian-java/doc/mdx.html is in libmondrian-java-doc 1:3.11.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 | <html>
<!--
== This software is subject to the terms of the Eclipse Public License v1.0
== Agreement, available at the following URL:
== http://www.eclipse.org/legal/epl-v10.html.
== You must accept the terms of that agreement to use this software.
==
== Copyright (C) 2005-2011 Pentaho
== All Rights Reserved.
-->
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<title>Pentaho Analysis Services: MDX Specification</title>
</head>
<body>
<!-- doc2web start -->
<!-- page title -->
<div class="contentheading">MDX Specification</div>
<!-- end page title -->
<!--
########################
## What is MDX? #####
######################## -->
<h3>What is MDX?<a name="What_is_MDX"> </a></h3>
<p>MDX stands for 'multi-dimensional expressions'. It is the main query language implemented by Mondrian.</p>
<p>MDX was introduced by Microsoft with Microsoft SQL Server OLAP Services in around 1998, as the language component of the OLE DB for OLAP API. More recently, MDX has appeared as part of the XML for Analysis API. Microsoft proposed MDX as a standard, and its adoption among application writers and other OLAP providers is steadily increasing.</p>
<!--
####################################
## What is the syntax of MDX? #####
#################################### -->
<h3>What is the syntax of MDX?<a name="What_is_the_syntax_of_MDX"> </a></h3>
<p>A basic MDX query looks like this:</p>
<blockquote><code>
SELECT {[Measures].[Unit Sales], [Measures].[Store Sales]} ON COLUMNS,<br />
{[Product].members} ON ROWS<br />
FROM [Sales]<br />
WHERE [Time].[1997].[Q2]
</code></blockquote>
<p>It looks a little like SQL, but don't be deceived! The structure of an MDX query is quite different from SQL.</p>
<p>Since MDX is a standard language, we don't cover its syntax here. (The Microsoft SQL Server site has an <a href="http://msdn.microsoft.com/en-us/library/ms145506.aspx" target="_blank" class="included_content_links">Multidimensional Expression (MDX) Referene</a>; there's also a <a href="http://www.databasejournal.com/features/mssql/article.php/10894_1495511_2" target="_blank" class="included_content_links">good tutorial</a> in Database Journal.) This specification describes the differences between Mondrian's dialect and the standard dialect of MDX.</p>
<!--
###############################
## Mondrian-specific MDX #####
############################### -->
<h3>Mondrian-specific MDX<a name="Mondrian_specific_MDX"> </a></h3>
<h1>StrToSet and StrToTuple<a name="StrToSet_and_StrToTuple"> </a></h1>
<p>The <code>StrToSet()</code> and <code>StrToTuple()</code> functions take an extra parameter.</p>
<h1>Parsing<a name="Parsing"> </a></h1>
<p>Parsing is case-sensitive.</p>
<h1>Parameters<a name="Parameters"> </a></h1>
<p>Pseudo-functions <code>Parameter()</code> and <code>ParamRef()</code> allow you to create parameterized MDX statements.</p>
<p>A call to the <code>Parameter</code> function defines a parameter's name,
data type and default value. A parameter always has a default value (it makes
life simpler for the UI). If the parameter is a member, then the data type is
the name of a hierarchy that the parameter must belong to. This metadata
potentially allows a user interface to generate a list of values for the
parameter.</p>
<p>The purpose of the <code>ParamRef</code> function is if you want to define a
parameter once and use it several times in the same query. You could use
Parameter several times but you'd have to make sure the definitions (data type,
default value) are identical otherwise mondrian would complain.</p>
<p>The olap4j API supports parameters as you would expect. Once you've prepared
a statement, you can call <code>PreparedOlapStatement.getParameterMetaData()</code>.
This returns an
<a href="http://www.olap4j.org/api/org/olap4j/OlapParameterMetaData.html">
OlapParameterMetaData</a>, which is a subclass of the JDBC
<code>ParameterMetaData</code> object.</p>
<h4>Cast operator<a name="Cast_operator"> </a></h4>
<p>The Cast operator converts scalar expressions to other types. The syntax is</p>
<blockquote>
<p><code>Cast(<Expression> AS <Type>)</code></p>
</blockquote>
<p>where <Type> is one of:</p>
<ul>
<li>BOOLEAN</li>
<li>NUMERIC</li>
<li>INTEGER</li>
<li>STRING</li>
</ul>
<p>For example,</p>
<blockquote>
<p><code>Cast([Store].CurrentMember.[Store Sqft], INTEGER)</code></p>
</blockquote>
<p>returns the value of the <code>[Store Sqft]</code> property as an integer
value.</p>
<h3><code>IN</code> and <code>NOT IN</code><a name="In"> </a></h3>
<p><code>IN</code> and <code>NOT IN</code> are Mondrian-specific functions.
For example:</p>
<blockquote>
<code>SELECT {[Measures].[Unit Sales]} ON COLUMNS,<br/>
FILTER([Product].[Product Family].MEMBERS,<br/>
[Product].[Product Family].CurrentMember NOT IN<br/>
{[Product].[All Products].firstChild,<br/>
[Product].[All Products].lastChild}) ON ROWS<br/>
FROM [Sales]</code>
</blockquote>
<h3><code>MATCHES</code> and <code>NOT MATCHES</code><a name="Matches"> </a></h3>
<p><code>MATCHES</code> and <code>NOT MATCHES</code> are Mondrian-specific
functions which compare a string with a <A href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html">Java regular expression</A>.
For example, the following query finds all employees whose name starts with 'sam' (case-insensitive):</p>
<blockquote>
<code>SELECT {[Measures].[Org Salary]} ON COLUMNS,<br/>
Filter({[Employees].MEMBERS},<br/>
[Employees].CurrentMember.Name MATCHES '(?i)sam.*') ON ROWS<br/>
FROM [HR]</code>
</blockquote>
<p>The MATCHES operator takes a Java compliant regular expression syntax.
Mondrian can evaluate the MATCHES operator natively by pushing it down to the
underlying RDBMS. Not all dialects support the evaluation of regular expressions,
and most do not support the full extent of the Java syntax. Mondrian
relies on the database dialect SPI to convert Java regular expressions into
something the database can understand. If the database does not support regular
expressions, Mondrian will evaluate the results in memory, using the full
Java compliant syntax.</p>
<!--
#######################
## VBA functions #####
####################### -->
<h3>Visual Basic for Applications (VBA) functions<a name="VBA_functions"> </a></h3>
<p>Since the first implementation of MDX was as part of Microsoft SQL Server
OLAP Services, the language inherited the built-in functions available in that
environment, namely the Visual Basic for Applications (VBA) specification. This
specification includes functions for conversion (CBool, CInt, IsNumber),
arithmetic (Tan, Exp), finance (NPer, NPV), and date/time (DatePart, Now). Even
though Mondrian cannot interface with Visual Basic, it includes a large number
of VBA functions to allow MDX queries written in a Microsoft environment to run
unchanged.</p>
<p>This document describes which VBA functions are available in mondrian; for
more detailed descriptions of all VBA functions, see Visual Basic Functions.
Note that that document includes some VBA functions which are not implemented in
mondrian.</p>
<h3>Comments<a name="Comments"> </a></h3>
<p>MDX statements can contain comments. There are 3 syntactic forms for comments:</p>
<blockquote><p>
// End-of-line comment
</p></blockquote>
<blockquote><p>
-- End-of-line comment
</p></blockquote>
<blockquote><p>
/* Multi-line<br />
comment */
</p></blockquote>
<p>Comments can be nested, for example</p>
<blockquote><p>
/* Multi-line<br />
comment /* Comment within a comment */ <br />
*/
</p></blockquote>
<!--
########################
## Format Strings #####
######################## -->
<h3>Format Strings<a name="Format_strings"> </a></h3>
<p>Every member has a FORMAT_STRING property, which affects how its raw value is rendered into text in the user interface. For example, the query</p>
<blockquote><code>
WITH MEMBER [Measures].[Profit] AS '([Measures].[Store Sales] - [Measures].[Store Cost])',<br />
FORMAT_STRING = "$#,###.00"<br />
SELECT {[Measures].[Store Sales], [Measures].[Profit]} ON COLUMNS,<br />
{[Product].CurrentMember.Children} ON ROWS<br />
FROM [Sales]
</code></blockquote>
<p>yields cells formatted in dollar and cent amounts.</p>
<p>Members defined in a schema file can also have format strings. Measures use the formatString attribute:</p>
<blockquote><code>
<Measure name="Store Sales" column="store_sales" aggregator="sum" formatString="#,###.00"/>
</code></blockquote>
<p>and calculated members use the <CalculatedMemberProperty> sub-element:</p>
<blockquote><code>
<CalculatedMember name="Profit" dimension="Measures" formula="[Measures].[Store Sales] - [Measures].[Store Cost]"><br />
<CalculatedMemberProperty name="FORMAT_STRING" value="$#,##0.00"/><br />
</CalculatedMember>
</code></blockquote>
<p>Format strings use Visual Basic formatting syntax; see <a href="api/mondrian/util/Format.html" class="included_content_links" target="_blank">class mondrian.util.Format</a> for more details.</p>
<p>A measure's format string is usually a fixed string, but is really an expression, which is evaluated in the same context as the cell. You can therefore change the formatting of a cell depending upon the cell's value.</p>
<p>The format string can even contain 'style' attributes which are interpreted specially by JPivot. If present, JPivot will render cells in color.</p>
<p>The following example combines a dynamic formula with style attributes. The result is that cells are displayed with green background if they are less than $100,000, or a red background if they are greater than $100,000:</p>
<blockquote><code>
WITH MEMBER [Measures].[Profit] AS<br />
'([Measures].[Store Sales] - [Measures].[Store Cost])',<br />
FORMAT_STRING = Iif([Measures].[Profit] < 100000, '|#|style=green', '|#|style=red')<br />
SELECT {[Measures].[Store Sales], [Measures].[Profit]} ON COLUMNS,<br />
{[Product].CurrentMember.Children} ON ROWS<br />
FROM [Sales]
</code></blockquote>
<!--
#######################
## Order of Sets #####
####################### -->
<h3>Order of sets</h3>
<p>MDX sets are ordered and may contain duplicates. (Both of these properties are
at odds with the mathematical definition of 'set', so it would have been
better if they were called 'lists', but we're stuck with the term 'set'.)</p>
<p>For most functions that return sets, Microsoft's documentation for
SQL Server Analysis Services 2008 (the <i>de facto</i> MDX standard)
does not specify the order of elements in the result set, and one might
assume that MDX server could return the results in any order and still
comply with the standard. However, Mondrian's implementation of MDX gives
stronger guarantees: a function's result set will be in the obvious order.</p>
<p>For most functions, the definition of 'obvious' is obvious,
so we won't spell it out in detail.
For example, <code>Filter</code> returns elements in the same order as the set expression;
<code>Crossjoin</code> returns the results in the order of the first set expression, then within
that, by the second second expression. Similarly <code>Generate</code>,
<code>Union</code>, <code>Except</code>. The sorting
functions (<code>Order</code>, <code>TopCount</code>, <code>BottomCount</code>, <code>
TopPercent</code>, <code>Hierarchize</code>, etc.) use a
<a href="http://en.wikipedia.org/wiki/Sorting_algorithm#Stability">stable</a>
sorting algorithm. Metadata methods such as <code><Hierarchy>.Members</code>
return their results in natural order.</p>
<p>If you do not care about the order of results of a set expression
(say because you are sorting the results later),
wrap the expression the <code>Unorder</code> function,
and mondrian may be able to use a more efficient algorithm
that does not guarantee order.</p>
<!--
########################
## Function List #####
######################## -->
<h3>Function List</h3>
<p>These are the functions implemented in the current Mondrian release.</p>
<table width="500" class="grayTable">
<tr>
<td><b>Name</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td valign=top><code>$AggregateChildren</code></td>
<td>Equivalent to 'Aggregate(<Hierarchy>.CurrentMember.Children); for internal use.
<h1>Syntax</h1>
<Numeric Expression> $AggregateChildren(<Hierarchy>)
</td>
</tr>
<tr>
<td valign=top><code>()</code></td>
<td>
<h1>Syntax</h1>
</td>
</tr>
<tr>
<td valign=top><code>*</code></td>
<td>Multiplies two numbers.
<h1>Syntax</h1>
<Numeric Expression> * <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>*</code></td>
<td>Returns the cross product of two sets.
<h1>Syntax</h1>
<Set> * <Set><br/>
<Member> * <Set><br/>
<Set> * <Member><br/>
<Member> * <Member>
</td>
</tr>
<tr>
<td valign=top><code>+</code></td>
<td>Adds two numbers.
<h1>Syntax</h1>
<Numeric Expression> + <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>-</code></td>
<td>Subtracts two numbers.
<h1>Syntax</h1>
<Numeric Expression> - <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>-</code></td>
<td>Returns the negative of a number.
<h1>Syntax</h1>
- <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>/</code></td>
<td>Divides two numbers.
<h1>Syntax</h1>
<Numeric Expression> / <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>:</code></td>
<td>Infix colon operator returns the set of members between a given pair of members.
<h1>Syntax</h1>
<Member> : <Member>
</td>
</tr>
<tr>
<td valign=top><code><</code></td>
<td>Returns whether an expression is less than another.
<h1>Syntax</h1>
<Numeric Expression> < <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code><</code></td>
<td>Returns whether an expression is less than another.
<h1>Syntax</h1>
<String> < <String>
</td>
</tr>
<tr>
<td valign=top><code><=</code></td>
<td>Returns whether an expression is less than or equal to another.
<h1>Syntax</h1>
<Numeric Expression> <= <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code><=</code></td>
<td>Returns whether an expression is less than or equal to another.
<h1>Syntax</h1>
<String> <= <String>
</td>
</tr>
<tr>
<td valign=top><code><></code></td>
<td>Returns whether two expressions are not equal.
<h1>Syntax</h1>
<Numeric Expression> <> <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code><></code></td>
<td>Returns whether two expressions are not equal.
<h1>Syntax</h1>
<String> <> <String>
</td>
</tr>
<tr>
<td valign=top><code>=</code></td>
<td>Returns whether two expressions are equal.
<h1>Syntax</h1>
<Numeric Expression> = <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>=</code></td>
<td>Returns whether two expressions are equal.
<h1>Syntax</h1>
<String> = <String>
</td>
</tr>
<tr>
<td valign=top><code>></code></td>
<td>Returns whether an expression is greater than another.
<h1>Syntax</h1>
<Numeric Expression> > <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>></code></td>
<td>Returns whether an expression is greater than another.
<h1>Syntax</h1>
<String> > <String>
</td>
</tr>
<tr>
<td valign=top><code>>=</code></td>
<td>Returns whether an expression is greater than or equal to another.
<h1>Syntax</h1>
<Numeric Expression> >= <Numeric Expression>
</td>
</tr>
<tr>
<td valign=top><code>>=</code></td>
<td>Returns whether an expression is greater than or equal to another.
<h1>Syntax</h1>
<String> >= <String>
</td>
</tr>
<tr>
<td valign=top><code>AND</code></td>
<td>Returns the conjunction of two conditions.
<h1>Syntax</h1>
<Logical Expression> AND <Logical Expression>
</td>
</tr>
<tr>
<td valign=top><code>Abs</code></td>
<td>Returns a value of the same type that is passed to it specifying the absolute value of a number.
<h1>Syntax</h1>
<Numeric Expression> Abs(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Acos</code></td>
<td>Returns the arccosine, or inverse cosine, of a number. The arccosine is the angle whose cosine is Arg1. The returned angle is given in radians in the range 0 (zero) to pi.
<h1>Syntax</h1>
<Numeric Expression> Acos(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Acosh</code></td>
<td>Returns the inverse hyperbolic cosine of a number. Number must be greater than or equal to 1. The inverse hyperbolic cosine is the value whose hyperbolic cosine is Arg1, so Acosh(Cosh(number)) equals Arg1.
<h1>Syntax</h1>
<Numeric Expression> Acosh(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>AddCalculatedMembers</code></td>
<td>Adds calculated members to a set.
<h1>Syntax</h1>
<Set> AddCalculatedMembers(<Set>)
</td>
</tr>
<tr>
<td valign=top><code>Aggregate</code></td>
<td>Returns a calculated value using the appropriate aggregate function, based on the context of the query.
<h1>Syntax</h1>
<Numeric Expression> Aggregate(<Set>)<br/>
<Numeric Expression> Aggregate(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>AllMembers</code></td>
<td>Returns a set that contains all members, including calculated members, of the specified dimension.
<h1>Syntax</h1>
<Dimension>.AllMembers
</td>
</tr>
<tr>
<td valign=top><code>AllMembers</code></td>
<td>Returns a set that contains all members, including calculated members, of the specified hierarchy.
<h1>Syntax</h1>
<Hierarchy>.AllMembers
</td>
</tr>
<tr>
<td valign=top><code>AllMembers</code></td>
<td>Returns a set that contains all members, including calculated members, of the specified level.
<h1>Syntax</h1>
<Level>.AllMembers
</td>
</tr>
<tr>
<td valign=top><code>Ancestor</code></td>
<td>Returns the ancestor of a member at a specified level.
<h1>Syntax</h1>
<Member> Ancestor(<Member>, <Level>)<br/>
<Member> Ancestor(<Member>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Asc</code></td>
<td>Returns an Integer representing the character code corresponding to the first letter in a string.
<h1>Syntax</h1>
<Integer> Asc(<String>)
</td>
</tr>
<tr>
<td valign=top><code>AscB</code></td>
<td>See Asc.
<h1>Syntax</h1>
<Integer> AscB(<String>)
</td>
</tr>
<tr>
<td valign=top><code>AscW</code></td>
<td>See Asc.
<h1>Syntax</h1>
<Integer> AscW(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Ascendants</code></td>
<td>Returns the set of the ascendants of a specified member.
<h1>Syntax</h1>
<Set> Ascendants(<Member>)
</td>
</tr>
<tr>
<td valign=top><code>Asin</code></td>
<td>Returns the arcsine, or inverse sine, of a number. The arcsine is the angle whose sine is Arg1. The returned angle is given in radians in the range -pi/2 to pi/2.
<h1>Syntax</h1>
<Numeric Expression> Asin(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Asinh</code></td>
<td>Returns the inverse hyperbolic sine of a number. The inverse hyperbolic sine is the value whose hyperbolic sine is Arg1, so Asinh(Sinh(number)) equals Arg1.
<h1>Syntax</h1>
<Numeric Expression> Asinh(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Atan2</code></td>
<td>Returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a point with coordinates (x_num, y_num). The angle is given in radians between -pi and pi, excluding -pi.
<h1>Syntax</h1>
<Numeric Expression> Atan2(<Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Atanh</code></td>
<td>Returns the inverse hyperbolic tangent of a number. Number must be between -1 and 1 (excluding -1 and 1).
<h1>Syntax</h1>
<Numeric Expression> Atanh(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Atn</code></td>
<td>Returns a Double specifying the arctangent of a number.
<h1>Syntax</h1>
<Numeric Expression> Atn(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Avg</code></td>
<td>Returns the average value of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> Avg(<Set>)<br/>
<Numeric Expression> Avg(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>BottomCount</code></td>
<td>Returns a specified number of items from the bottom of a set, optionally ordering the set first.
<h1>Syntax</h1>
<Set> BottomCount(<Set>, <Numeric Expression>, <Numeric Expression>)<br/>
<Set> BottomCount(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>BottomPercent</code></td>
<td>Sorts a set and returns the bottom N elements whose cumulative total is at least a specified percentage.
<h1>Syntax</h1>
<Set> BottomPercent(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>BottomSum</code></td>
<td>Sorts a set and returns the bottom N elements whose cumulative total is at least a specified value.
<h1>Syntax</h1>
<Set> BottomSum(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>CBool</code></td>
<td>Returns an expression that has been converted to a Variant of subtype Boolean.
<h1>Syntax</h1>
<Logical Expression> CBool(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>CByte</code></td>
<td>Returns an expression that has been converted to a Variant of subtype Byte.
<h1>Syntax</h1>
<Integer> CByte(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>CDate</code></td>
<td>Returns an expression that has been converted to a Variant of subtype Date.
<h1>Syntax</h1>
<DateTime> CDate(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>CDbl</code></td>
<td>Returns an expression that has been converted to a Variant of subtype Double.
<h1>Syntax</h1>
<Numeric Expression> CDbl(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>CInt</code></td>
<td>Returns an expression that has been converted to a Variant of subtype Integer.
<h1>Syntax</h1>
<Integer> CInt(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>Cache</code></td>
<td>Evaluates and returns its sole argument, applying statement-level caching
<h1>Syntax</h1>
Cache(<<Exp>>)
</td>
</tr>
<tr>
<td valign=top><code>CalculatedChild</code></td>
<td>Returns an existing calculated child member with name <String> from the specified <Member>.
<h1>Syntax</h1>
<Member> <Member>.CalculatedChild(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Caption</code></td>
<td>Returns the caption of a dimension.
<h1>Syntax</h1>
<Dimension>.Caption
</td>
</tr>
<tr>
<td valign=top><code>Caption</code></td>
<td>Returns the caption of a hierarchy.
<h1>Syntax</h1>
<Hierarchy>.Caption
</td>
</tr>
<tr>
<td valign=top><code>Caption</code></td>
<td>Returns the caption of a level.
<h1>Syntax</h1>
<Level>.Caption
</td>
</tr>
<tr>
<td valign=top><code>Caption</code></td>
<td>Returns the caption of a member.
<h1>Syntax</h1>
<Member>.Caption
</td>
</tr>
<tr>
<td valign=top><code>Cast</code></td>
<td>Converts values to another type.
<h1>Syntax</h1>
Cast(<Expression> AS <Type>)
</td>
</tr>
<tr>
<td valign=top><code>Children</code></td>
<td>Returns the children of a member.
<h1>Syntax</h1>
<Member>.Children
</td>
</tr>
<tr>
<td valign=top><code>Chr</code></td>
<td>Returns a String containing the character associated with the specified character code.
<h1>Syntax</h1>
<String> Chr(<Integer>)
</td>
</tr>
<tr>
<td valign=top><code>ChrB</code></td>
<td>See Chr.
<h1>Syntax</h1>
<String> ChrB(<Integer>)
</td>
</tr>
<tr>
<td valign=top><code>ChrW</code></td>
<td>See Chr.
<h1>Syntax</h1>
<String> ChrW(<Integer>)
</td>
</tr>
<tr>
<td valign=top><code>ClosingPeriod</code></td>
<td>Returns the last descendant of a member at a level.
<h1>Syntax</h1>
<Member> ClosingPeriod()<br/>
<Member> ClosingPeriod(<Level>)<br/>
<Member> ClosingPeriod(<Level>, <Member>)<br/>
<Member> ClosingPeriod(<Member>)
</td>
</tr>
<tr>
<td valign=top><code>CoalesceEmpty</code></td>
<td>Coalesces an empty cell value to a different value. All of the expressions must be of the same type (number or string).
<h1>Syntax</h1>
CoalesceEmpty(<Value Expression>[, <Value Expression>...])
</td>
</tr>
<tr>
<td valign=top><code>Correlation</code></td>
<td>Returns the correlation of two series evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> Correlation(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> Correlation(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Cos</code></td>
<td>Returns a Double specifying the cosine of an angle.
<h1>Syntax</h1>
<Numeric Expression> Cos(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Cosh</code></td>
<td>Returns the hyperbolic cosine of a number.
<h1>Syntax</h1>
<Numeric Expression> Cosh(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Count</code></td>
<td>Returns the number of tuples in a set, empty cells included unless the optional EXCLUDEEMPTY flag is used.
<h1>Syntax</h1>
<Numeric Expression> Count(<Set>)<br/>
<Numeric Expression> Count(<Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>Count</code></td>
<td>Returns the number of tuples in a set including empty cells.
<h1>Syntax</h1>
<Set>.Count
</td>
</tr>
<tr>
<td valign=top><code>Cousin</code></td>
<td>Returns the member with the same relative position under <ancestor member> as the member specified.
<h1>Syntax</h1>
<Member> Cousin(<Member>, <Ancestor Member>)
</td>
</tr>
<tr>
<td valign=top><code>Covariance</code></td>
<td>Returns the covariance of two series evaluated over a set (biased).
<h1>Syntax</h1>
<Numeric Expression> Covariance(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> Covariance(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>CovarianceN</code></td>
<td>Returns the covariance of two series evaluated over a set (unbiased).
<h1>Syntax</h1>
<Numeric Expression> CovarianceN(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> CovarianceN(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Crossjoin</code></td>
<td>Returns the cross product of two sets.
<h1>Syntax</h1>
<Set> Crossjoin(<Set>, <Set>)
</td>
</tr>
<tr>
<td valign=top><code>CurrentDateMember</code></td>
<td>Returns the exact member within the specified dimension corresponding to the current date, in the format specified by the format parameter. If there is no such date, returns the NULL member. Format strings are the same as used by the MDX Format function, namely the Visual Basic format strings. See http://www.apostate.com/programming/vb-format.html.
<h1>Syntax</h1>
<Member> CurrentDateMember(<Hierarchy>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>CurrentDateMember</code></td>
<td>Returns the closest or exact member within the specified dimension corresponding to the current date, in the format specified by the format parameter. Format strings are the same as used by the MDX Format function, namely the Visual Basic format strings. See http://www.apostate.com/programming/vb-format.html.
<h1>Syntax</h1>
<Member> CurrentDateMember(<Hierarchy>, <String>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>CurrentDateString</code></td>
<td>Returns the current date formatted as specified by the format parameter.
<h1>Syntax</h1>
<String> CurrentDateString(<String>)
</td>
</tr>
<tr>
<td valign=top><code>CurrentMember</code></td>
<td>Returns the current member along a dimension during an iteration.
<h1>Syntax</h1>
<Dimension>.CurrentMember
</td>
</tr>
<tr>
<td valign=top><code>CurrentMember</code></td>
<td>Returns the current member along a hierarchy during an iteration.
<h1>Syntax</h1>
<Hierarchy>.CurrentMember
</td>
</tr>
<tr>
<td valign=top><code>DDB</code></td>
<td>Returns a Double specifying the depreciation of an asset for a specific time period using the double-declining balance method or some other method you specify.
<h1>Syntax</h1>
<Numeric Expression> DDB(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>DDB</code></td>
<td>Returns a Double specifying the depreciation of an asset for a specific time period using the double-declining balance method or some other method you specify.
<h1>Syntax</h1>
<Numeric Expression> DDB(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>DataMember</code></td>
<td>Returns the system-generated data member that is associated with a nonleaf member of a dimension.
<h1>Syntax</h1>
<Member>.DataMember
</td>
</tr>
<tr>
<td valign=top><code>Date</code></td>
<td>Returns a Variant (Date) containing the current system date.
<h1>Syntax</h1>
<DateTime> Date()
</td>
</tr>
<tr>
<td valign=top><code>DateAdd</code></td>
<td>Returns a Variant (Date) containing a date to which a specified time interval has been added.
<h1>Syntax</h1>
<DateTime> DateAdd(<String>, <Numeric Expression>, <DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>DateDiff</code></td>
<td>Returns a Variant (Long) specifying the number of time intervals between two specified dates.
<h1>Syntax</h1>
<Numeric Expression> DateDiff(<String>, <DateTime>, <DateTime>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>DateDiff</code></td>
<td>Returns a Variant (Long) specifying the number of time intervals between two specified dates.
<h1>Syntax</h1>
<Numeric Expression> DateDiff(<String>, <DateTime>, <DateTime>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>DateDiff</code></td>
<td>Returns a Variant (Long) specifying the number of time intervals between two specified dates.
<h1>Syntax</h1>
<Numeric Expression> DateDiff(<String>, <DateTime>, <DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>DatePart</code></td>
<td>Returns a Variant (Integer) containing the specified part of a given date.
<h1>Syntax</h1>
<Integer> DatePart(<String>, <DateTime>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>DatePart</code></td>
<td>Returns a Variant (Integer) containing the specified part of a given date.
<h1>Syntax</h1>
<Integer> DatePart(<String>, <DateTime>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>DatePart</code></td>
<td>Returns a Variant (Integer) containing the specified part of a given date.
<h1>Syntax</h1>
<Integer> DatePart(<String>, <DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>DateSerial</code></td>
<td>Returns a Variant (Date) for a specified year, month, and day.
<h1>Syntax</h1>
<DateTime> DateSerial(<Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>DateValue</code></td>
<td>Returns a Variant (Date).
<h1>Syntax</h1>
<DateTime> DateValue(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>Day</code></td>
<td>Returns a Variant (Integer) specifying a whole number between 1 and 31, inclusive, representing the day of the month.
<h1>Syntax</h1>
<Integer> Day(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>DefaultMember</code></td>
<td>Returns the default member of a dimension.
<h1>Syntax</h1>
<Dimension>.DefaultMember
</td>
</tr>
<tr>
<td valign=top><code>DefaultMember</code></td>
<td>Returns the default member of a hierarchy.
<h1>Syntax</h1>
<Hierarchy>.DefaultMember
</td>
</tr>
<tr>
<td valign=top><code>Degrees</code></td>
<td>Converts radians to degrees.
<h1>Syntax</h1>
<Numeric Expression> Degrees(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Descendants</code></td>
<td>Returns the set of descendants of a member at a specified level, optionally including or excluding descendants in other levels.
<h1>Syntax</h1>
<Set> Descendants(<Member>)<br/>
<Set> Descendants(<Member>, <Level>)<br/>
<Set> Descendants(<Member>, <Level>, <Symbol>)<br/>
<Set> Descendants(<Member>, <Numeric Expression>)<br/>
<Set> Descendants(<Member>, <Numeric Expression>, <Symbol>)<br/>
<Set> Descendants(<Member>, <Empty>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>Dimension</code></td>
<td>Returns the dimension that contains a specified hierarchy.
<h1>Syntax</h1>
<Dimension>.Dimension
</td>
</tr>
<tr>
<td valign=top><code>Dimension</code></td>
<td>Returns the dimension that contains a specified hierarchy.
<h1>Syntax</h1>
<Hierarchy>.Dimension
</td>
</tr>
<tr>
<td valign=top><code>Dimension</code></td>
<td>Returns the dimension that contains a specified level.
<h1>Syntax</h1>
<Level>.Dimension
</td>
</tr>
<tr>
<td valign=top><code>Dimension</code></td>
<td>Returns the dimension that contains a specified member.
<h1>Syntax</h1>
<Member>.Dimension
</td>
</tr>
<tr>
<td valign=top><code>Dimensions</code></td>
<td>Returns the dimension whose zero-based position within the cube is specified by a numeric expression.
<h1>Syntax</h1>
<Dimension> Dimensions(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Dimensions</code></td>
<td>Returns the dimension whose name is specified by a string.
<h1>Syntax</h1>
<Dimension> Dimensions(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Distinct</code></td>
<td>Eliminates duplicate tuples from a set.
<h1>Syntax</h1>
<Set> Distinct(<Set>)
</td>
</tr>
<tr>
<td valign=top><code>DrilldownLevel</code></td>
<td>Drills down the members of a set, at a specified level, to one level below. Alternatively, drills down on a specified dimension in the set.
<h1>Syntax</h1>
<Set> DrilldownLevel(<Set>)<br/>
<Set> DrilldownLevel(<Set>, <Level>)<br/>
<Set> DrilldownLevel(<Set>, <Empty>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>DrilldownLevelBottom</code></td>
<td>Drills down the bottommost members of a set, at a specified level, to one level below.
<h1>Syntax</h1>
<Set> DrilldownLevelBottom(<Set>, <Numeric Expression>)<br/>
<Set> DrilldownLevelBottom(<Set>, <Numeric Expression>, <Level>)<br/>
<Set> DrilldownLevelBottom(<Set>, <Numeric Expression>, <Level>, <Numeric Expression>)<br/>
<Set> DrilldownLevelBottom(<Set>, <Numeric Expression>, <Empty>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>DrilldownLevelTop</code></td>
<td>Drills down the topmost members of a set, at a specified level, to one level below.
<h1>Syntax</h1>
<Set> DrilldownLevelTop(<Set>, <Numeric Expression>)<br/>
<Set> DrilldownLevelTop(<Set>, <Numeric Expression>, <Level>)<br/>
<Set> DrilldownLevelTop(<Set>, <Numeric Expression>, <Level>, <Numeric Expression>)<br/>
<Set> DrilldownLevelTop(<Set>, <Numeric Expression>, <Empty>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>DrilldownMember</code></td>
<td>Drills down the members in a set that are present in a second specified set.
<h1>Syntax</h1>
<Set> DrilldownMember(<Set>, <Set>)<br/>
<Set> DrilldownMember(<Set>, <Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>Except</code></td>
<td>Finds the difference between two sets, optionally retaining duplicates.
<h1>Syntax</h1>
<Set> Except(<Set>, <Set>)<br/>
<Set> Except(<Set>, <Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>Exists</code></td>
<td>Returns the the set of tuples of the first set that exist with one or more tuples of the second set.
<h1>Syntax</h1>
<Set> Exists(<Set>, <Set>)
</td>
</tr>
<tr>
<td valign=top><code>Exp</code></td>
<td>Returns a Double specifying e (the base of natural logarithms) raised to a power.
<h1>Syntax</h1>
<Numeric Expression> Exp(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Extract</code></td>
<td>Returns a set of tuples from extracted dimension elements. The opposite of Crossjoin.
<h1>Syntax</h1>
Extract(<Set>, <Dimension>[, <Dimension>...])
</td>
</tr>
<tr>
<td valign=top><code>FV</code></td>
<td>Returns a Double specifying the future value of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> FV(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>FV</code></td>
<td>Returns a Double specifying the future value of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> FV(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>FV</code></td>
<td>Returns a Double specifying the future value of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> FV(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Filter</code></td>
<td>Returns the set resulting from filtering a set based on a search condition.
<h1>Syntax</h1>
<Set> Filter(<Set>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>FirstChild</code></td>
<td>Returns the first child of a member.
<h1>Syntax</h1>
<Member>.FirstChild
</td>
</tr>
<tr>
<td valign=top><code>FirstQ</code></td>
<td>Returns the 1st quartile value of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> FirstQ(<Set>)<br/>
<Numeric Expression> FirstQ(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>FirstSibling</code></td>
<td>Returns the first child of the parent of a member.
<h1>Syntax</h1>
<Member>.FirstSibling
</td>
</tr>
<tr>
<td valign=top><code>Fix</code></td>
<td>Returns the integer portion of a number. If negative, returns the negative number greater than or equal to the number.
<h1>Syntax</h1>
<Integer> Fix(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>Format</code></td>
<td>Formats a number or date to a string.
<h1>Syntax</h1>
<String> Format(<Member>, <String>)<br/>
<String> Format(<Numeric Expression>, <String>)<br/>
<String> Format(<DateTime>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>FormatCurrency</code></td>
<td>Returns an expression formatted as a currency value using the currency symbol defined in the system control panel.
<h1>Syntax</h1>
<String> FormatCurrency(<Value>, <Integer>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatCurrency</code></td>
<td>Returns an expression formatted as a currency value using the currency symbol defined in the system control panel.
<h1>Syntax</h1>
<String> FormatCurrency(<Value>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatCurrency</code></td>
<td>Returns an expression formatted as a currency value using the currency symbol defined in the system control panel.
<h1>Syntax</h1>
<String> FormatCurrency(<Value>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatCurrency</code></td>
<td>Returns an expression formatted as a currency value using the currency symbol defined in the system control panel.
<h1>Syntax</h1>
<String> FormatCurrency(<Value>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatCurrency</code></td>
<td>Returns an expression formatted as a currency value using the currency symbol defined in the system control panel.
<h1>Syntax</h1>
<String> FormatCurrency(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>FormatDateTime</code></td>
<td>Returns an expression formatted as a date or time.
<h1>Syntax</h1>
<String> FormatDateTime(<DateTime>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatDateTime</code></td>
<td>Returns an expression formatted as a date or time.
<h1>Syntax</h1>
<String> FormatDateTime(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>FormatNumber</code></td>
<td>Returns an expression formatted as a number.
<h1>Syntax</h1>
<String> FormatNumber(<Value>, <Integer>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatNumber</code></td>
<td>Returns an expression formatted as a number.
<h1>Syntax</h1>
<String> FormatNumber(<Value>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatNumber</code></td>
<td>Returns an expression formatted as a number.
<h1>Syntax</h1>
<String> FormatNumber(<Value>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatNumber</code></td>
<td>Returns an expression formatted as a number.
<h1>Syntax</h1>
<String> FormatNumber(<Value>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatNumber</code></td>
<td>Returns an expression formatted as a number.
<h1>Syntax</h1>
<String> FormatNumber(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>FormatPercent</code></td>
<td>Returns an expression formatted as a percentage (multipled by 100) with a trailing % character.
<h1>Syntax</h1>
<String> FormatPercent(<Value>, <Integer>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatPercent</code></td>
<td>Returns an expression formatted as a percentage (multipled by 100) with a trailing % character.
<h1>Syntax</h1>
<String> FormatPercent(<Value>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatPercent</code></td>
<td>Returns an expression formatted as a percentage (multipled by 100) with a trailing % character.
<h1>Syntax</h1>
<String> FormatPercent(<Value>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatPercent</code></td>
<td>Returns an expression formatted as a percentage (multipled by 100) with a trailing % character.
<h1>Syntax</h1>
<String> FormatPercent(<Value>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>FormatPercent</code></td>
<td>Returns an expression formatted as a percentage (multipled by 100) with a trailing % character.
<h1>Syntax</h1>
<String> FormatPercent(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>Generate</code></td>
<td>Applies a set to each member of another set and joins the resulting sets by union.
<h1>Syntax</h1>
<Set> Generate(<Set>, <Set>)<br/>
<Set> Generate(<Set>, <Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>Generate</code></td>
<td>Applies a set to a string expression and joins resulting sets by string concatenation.
<h1>Syntax</h1>
<String> Generate(<Set>, <String>)<br/>
<String> Generate(<Set>, <String>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>Head</code></td>
<td>Returns the first specified number of elements in a set.
<h1>Syntax</h1>
<Set> Head(<Set>)<br/>
<Set> Head(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Hex</code></td>
<td>Returns a String representing the hexadecimal value of a number.
<h1>Syntax</h1>
<String> Hex(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>Hierarchize</code></td>
<td>Orders the members of a set in a hierarchy.
<h1>Syntax</h1>
<Set> Hierarchize(<Set>)<br/>
<Set> Hierarchize(<Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>Hierarchy</code></td>
<td>Returns a level's hierarchy.
<h1>Syntax</h1>
<Level>.Hierarchy
</td>
</tr>
<tr>
<td valign=top><code>Hierarchy</code></td>
<td>Returns a member's hierarchy.
<h1>Syntax</h1>
<Member>.Hierarchy
</td>
</tr>
<tr>
<td valign=top><code>Hour</code></td>
<td>Returns a Variant (Integer) specifying a whole number between 0 and 23, inclusive, representing the hour of the day.
<h1>Syntax</h1>
<Integer> Hour(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two tuples determined by a logical test.
<h1>Syntax</h1>
<Tuple> IIf(<Logical Expression>, <Tuple>, <Tuple>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two dimension values determined by a logical test.
<h1>Syntax</h1>
<Dimension> IIf(<Logical Expression>, <Dimension>, <Dimension>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two hierarchy values determined by a logical test.
<h1>Syntax</h1>
<Hierarchy> IIf(<Logical Expression>, <Hierarchy>, <Hierarchy>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two level values determined by a logical test.
<h1>Syntax</h1>
<Level> IIf(<Logical Expression>, <Level>, <Level>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns boolean determined by a logical test.
<h1>Syntax</h1>
<Logical Expression> IIf(<Logical Expression>, <Logical Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two member values determined by a logical test.
<h1>Syntax</h1>
<Member> IIf(<Logical Expression>, <Member>, <Member>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two numeric values determined by a logical test.
<h1>Syntax</h1>
<Numeric Expression> IIf(<Logical Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two set values determined by a logical test.
<h1>Syntax</h1>
<Set> IIf(<Logical Expression>, <Set>, <Set>)
</td>
</tr>
<tr>
<td valign=top><code>IIf</code></td>
<td>Returns one of two string values determined by a logical test.
<h1>Syntax</h1>
<String> IIf(<Logical Expression>, <String>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>IPmt</code></td>
<td>Returns a Double specifying the interest payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> IPmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>IPmt</code></td>
<td>Returns a Double specifying the interest payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> IPmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>IPmt</code></td>
<td>Returns a Double specifying the interest payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> IPmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>IRR</code></td>
<td>Returns a Double specifying the internal rate of return for a series of periodic cash flows (payments and receipts).
<h1>Syntax</h1>
<Numeric Expression> IRR(<Array>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>IRR</code></td>
<td>Returns a Double specifying the internal rate of return for a series of periodic cash flows (payments and receipts).
<h1>Syntax</h1>
<Numeric Expression> IRR(<Array>)
</td>
</tr>
<tr>
<td valign=top><code>IS</code></td>
<td>Returns whether two objects are the same
<h1>Syntax</h1>
<Member> IS <Member><br/>
<Level> IS <Level><br/>
<Hierarchy> IS <Hierarchy><br/>
<Dimension> IS <Dimension><br/>
<Tuple> IS <Tuple>
</td>
</tr>
<tr>
<td valign=top><code>IS EMPTY</code></td>
<td>Determines if an expression evaluates to the empty cell value.
<h1>Syntax</h1>
<Member> IS EMPTY<br/>
<Tuple> IS EMPTY
</td>
</tr>
<tr>
<td valign=top><code>IS NULL</code></td>
<td>Returns whether an object is null
<h1>Syntax</h1>
<Member> IS NULL<br/>
<Level> IS NULL<br/>
<Hierarchy> IS NULL<br/>
<Dimension> IS NULL
</td>
</tr>
<tr>
<td valign=top><code>InStr</code></td>
<td>Returns the position of the first occurrence of one string within another. Implements very basic form of InStr
<h1>Syntax</h1>
<Numeric Expression> InStr(<String>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>InStrRev</code></td>
<td>Returns the position of an occurrence of one string within another, from the end of string.
<h1>Syntax</h1>
<Integer> InStrRev(<String>, <String>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>InStrRev</code></td>
<td>Returns the position of an occurrence of one string within another, from the end of string.
<h1>Syntax</h1>
<Integer> InStrRev(<String>, <String>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>InStrRev</code></td>
<td>Returns the position of an occurrence of one string within another, from the end of string.
<h1>Syntax</h1>
<Integer> InStrRev(<String>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>Int</code></td>
<td>Returns the integer portion of a number. If negative, returns the negative number less than or equal to the number.
<h1>Syntax</h1>
<Integer> Int(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>Intersect</code></td>
<td>Returns the intersection of two input sets, optionally retaining duplicates.
<h1>Syntax</h1>
<Set> Intersect(<Set>, <Set>, <Symbol>)<br/>
<Set> Intersect(<Set>, <Set>)
</td>
</tr>
<tr>
<td valign=top><code>IsDate</code></td>
<td>Returns a Boolean value indicating whether an expression can be converted to a date..
<h1>Syntax</h1>
<Logical Expression> IsDate(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>IsEmpty</code></td>
<td>Determines if an expression evaluates to the empty cell value.
<h1>Syntax</h1>
<Logical Expression> IsEmpty(<String>)<br/>
<Logical Expression> IsEmpty(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Item</code></td>
<td>Returns a member from the tuple specified in <Tuple>. The member to be returned is specified by the zero-based position of the member in the set in <Index>.
<h1>Syntax</h1>
<Member> <Tuple>.Item(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Item</code></td>
<td>Returns a tuple from the set specified in <Set>. The tuple to be returned is specified by the zero-based position of the tuple in the set in <Index>.
<h1>Syntax</h1>
<Member> <Set>.Item(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Item</code></td>
<td>Returns a tuple from the set specified in <Set>. The tuple to be returned is specified by the member name (or names) in <String>.
<h1>Syntax</h1>
<Set>.Item(<String> [, ...])
</td>
</tr>
<tr>
<td valign=top><code>LCase</code></td>
<td>Returns a String that has been converted to lowercase.
<h1>Syntax</h1>
<String> LCase(<String>)
</td>
</tr>
<tr>
<td valign=top><code>LTrim</code></td>
<td>Returns a Variant (String) containing a copy of a specified string without leading spaces.
<h1>Syntax</h1>
<String> LTrim(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Lag</code></td>
<td>Returns a member further along the specified member's dimension.
<h1>Syntax</h1>
<Member> <Member>.Lag(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>LastChild</code></td>
<td>Returns the last child of a member.
<h1>Syntax</h1>
<Member>.LastChild
</td>
</tr>
<tr>
<td valign=top><code>LastPeriods</code></td>
<td>Returns a set of members prior to and including a specified member.
<h1>Syntax</h1>
<Set> LastPeriods(<Numeric Expression>)<br/>
<Set> LastPeriods(<Numeric Expression>, <Member>)
</td>
</tr>
<tr>
<td valign=top><code>LastSibling</code></td>
<td>Returns the last child of the parent of a member.
<h1>Syntax</h1>
<Member>.LastSibling
</td>
</tr>
<tr>
<td valign=top><code>Lead</code></td>
<td>Returns a member further along the specified member's dimension.
<h1>Syntax</h1>
<Member> <Member>.Lead(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Left</code></td>
<td>Returns a specified number of characters from the left side of a string.
<h1>Syntax</h1>
<String> Left(<String>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Len</code></td>
<td>Returns the number of characters in a string
<h1>Syntax</h1>
<Numeric Expression> Len(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Level</code></td>
<td>Returns a member's level.
<h1>Syntax</h1>
<Member>.Level
</td>
</tr>
<tr>
<td valign=top><code>Levels</code></td>
<td>Returns the level whose position in a hierarchy is specified by a numeric expression.
<h1>Syntax</h1>
<Level> <Hierarchy>.Levels(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Levels</code></td>
<td>Returns the level whose name is specified by a string expression.
<h1>Syntax</h1>
<Level> <Hierarchy>.Levels(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Levels</code></td>
<td>Returns the level whose name is specified by a string expression.
<h1>Syntax</h1>
<Level> Levels(<String>)
</td>
</tr>
<tr>
<td valign=top><code>LinRegIntercept</code></td>
<td>Calculates the linear regression of a set and returns the value of b in the regression line y = ax + b.
<h1>Syntax</h1>
<Numeric Expression> LinRegIntercept(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> LinRegIntercept(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>LinRegPoint</code></td>
<td>Calculates the linear regression of a set and returns the value of y in the regression line y = ax + b.
<h1>Syntax</h1>
<Numeric Expression> LinRegPoint(<Numeric Expression>, <Set>, <Numeric Expression>)<br/>
<Numeric Expression> LinRegPoint(<Numeric Expression>, <Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>LinRegR2</code></td>
<td>Calculates the linear regression of a set and returns R2 (the coefficient of determination).
<h1>Syntax</h1>
<Numeric Expression> LinRegR2(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> LinRegR2(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>LinRegSlope</code></td>
<td>Calculates the linear regression of a set and returns the value of a in the regression line y = ax + b.
<h1>Syntax</h1>
<Numeric Expression> LinRegSlope(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> LinRegSlope(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>LinRegVariance</code></td>
<td>Calculates the linear regression of a set and returns the variance associated with the regression line y = ax + b.
<h1>Syntax</h1>
<Numeric Expression> LinRegVariance(<Set>, <Numeric Expression>)<br/>
<Numeric Expression> LinRegVariance(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Log</code></td>
<td>Returns a Double specifying the natural logarithm of a number.
<h1>Syntax</h1>
<Numeric Expression> Log(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Log10</code></td>
<td>Returns the base-10 logarithm of a number.
<h1>Syntax</h1>
<Numeric Expression> Log10(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>MIRR</code></td>
<td>Returns a Double specifying the modified internal rate of return for a series of periodic cash flows (payments and receipts).
<h1>Syntax</h1>
<Numeric Expression> MIRR(<Array>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Max</code></td>
<td>Returns the maximum value of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> Max(<Set>)<br/>
<Numeric Expression> Max(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Median</code></td>
<td>Returns the median value of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> Median(<Set>)<br/>
<Numeric Expression> Median(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Members</code></td>
<td>Returns the set of members in a dimension.
<h1>Syntax</h1>
<Dimension>.Members
</td>
</tr>
<tr>
<td valign=top><code>Members</code></td>
<td>Returns the set of members in a hierarchy.
<h1>Syntax</h1>
<Hierarchy>.Members
</td>
</tr>
<tr>
<td valign=top><code>Members</code></td>
<td>Returns the set of members in a level.
<h1>Syntax</h1>
<Level>.Members
</td>
</tr>
<tr>
<td valign=top><code>Members</code></td>
<td>Returns the member whose name is specified by a string expression.
<h1>Syntax</h1>
<Member> Members(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Mid</code></td>
<td>Returns a specified number of characters from a string.
<h1>Syntax</h1>
<String> Mid(<String>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Mid</code></td>
<td>Returns a specified number of characters from a string.
<h1>Syntax</h1>
<String> Mid(<String>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Min</code></td>
<td>Returns the minimum value of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> Min(<Set>)<br/>
<Numeric Expression> Min(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Minute</code></td>
<td>Returns a Variant (Integer) specifying a whole number between 0 and 59, inclusive, representing the minute of the hour.
<h1>Syntax</h1>
<Integer> Minute(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>Month</code></td>
<td>Returns a Variant (Integer) specifying a whole number between 1 and 12, inclusive, representing the month of the year.
<h1>Syntax</h1>
<Integer> Month(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>MonthName</code></td>
<td>Returns a string indicating the specified month.
<h1>Syntax</h1>
<String> MonthName(<Integer>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Mtd</code></td>
<td>A shortcut function for the PeriodsToDate function that specifies the level to be Month.
<h1>Syntax</h1>
<Set> Mtd()<br/>
<Set> Mtd(<Member>)
</td>
</tr>
<tr>
<td valign=top><code>NOT</code></td>
<td>Returns the negation of a condition.
<h1>Syntax</h1>
NOT <Logical Expression>
</td>
</tr>
<tr>
<td valign=top><code>NPV</code></td>
<td>Returns a Double specifying the net present value of an investment based on a series of periodic cash flows (payments and receipts) and a discount rate.
<h1>Syntax</h1>
<Numeric Expression> NPV(<Numeric Expression>, <Array>)
</td>
</tr>
<tr>
<td valign=top><code>NPer</code></td>
<td>Returns a Double specifying the number of periods for an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> NPer(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Name</code></td>
<td>Returns the name of a dimension.
<h1>Syntax</h1>
<Dimension>.Name
</td>
</tr>
<tr>
<td valign=top><code>Name</code></td>
<td>Returns the name of a hierarchy.
<h1>Syntax</h1>
<Hierarchy>.Name
</td>
</tr>
<tr>
<td valign=top><code>Name</code></td>
<td>Returns the name of a level.
<h1>Syntax</h1>
<Level>.Name
</td>
</tr>
<tr>
<td valign=top><code>Name</code></td>
<td>Returns the name of a member.
<h1>Syntax</h1>
<Member>.Name
</td>
</tr>
<tr>
<td valign=top><code>NextMember</code></td>
<td>Returns the next member in the level that contains a specified member.
<h1>Syntax</h1>
<Member>.NextMember
</td>
</tr>
<tr>
<td valign=top><code>NonEmptyCrossJoin</code></td>
<td>Returns the cross product of two sets, excluding empty tuples and tuples without associated fact table data.
<h1>Syntax</h1>
<Set> NonEmptyCrossJoin(<Set>, <Set>)
</td>
</tr>
<tr>
<td valign=top><code>Now</code></td>
<td>Returns a Variant (Date) specifying the current date and time according your computer's system date and time.
<h1>Syntax</h1>
<DateTime> Now()
</td>
</tr>
<tr>
<td valign=top><code>OR</code></td>
<td>Returns the disjunction of two conditions.
<h1>Syntax</h1>
<Logical Expression> OR <Logical Expression>
</td>
</tr>
<tr>
<td valign=top><code>Oct</code></td>
<td>Returns a Variant (String) representing the octal value of a number.
<h1>Syntax</h1>
<String> Oct(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>OpeningPeriod</code></td>
<td>Returns the first descendant of a member at a level.
<h1>Syntax</h1>
<Member> OpeningPeriod()<br/>
<Member> OpeningPeriod(<Level>)<br/>
<Member> OpeningPeriod(<Level>, <Member>)
</td>
</tr>
<tr>
<td valign=top><code>Order</code></td>
<td>Arranges members of a set, optionally preserving or breaking the hierarchy.
<h1>Syntax</h1>
<Set> Order(<Set>, <Value>, <Symbol>)<br/>
<Set> Order(<Set>, <Value>)
</td>
</tr>
<tr>
<td valign=top><code>Ordinal</code></td>
<td>Returns the zero-based ordinal value associated with a level.
<h1>Syntax</h1>
<Level>.Ordinal
</td>
</tr>
<tr>
<td valign=top><code>PPmt</code></td>
<td>Returns a Double specifying the principal payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> PPmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>PPmt</code></td>
<td>Returns a Double specifying the principal payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> PPmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>PPmt</code></td>
<td>Returns a Double specifying the principal payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> PPmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>PV</code></td>
<td>Returns a Double specifying the present value of an annuity based on periodic, fixed payments to be paid in the future and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> PV(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>ParallelPeriod</code></td>
<td>Returns a member from a prior period in the same relative position as a specified member.
<h1>Syntax</h1>
<Member> ParallelPeriod()<br/>
<Member> ParallelPeriod(<Level>)<br/>
<Member> ParallelPeriod(<Level>, <Numeric Expression>)<br/>
<Member> ParallelPeriod(<Level>, <Numeric Expression>, <Member>)
</td>
</tr>
<tr>
<td valign=top><code>ParamRef</code></td>
<td>Returns the current value of this parameter. If it is null, returns the default value.
<h1>Syntax</h1>
<Value> ParamRef(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Parameter</code></td>
<td>Returns default value of parameter.
<h1>Syntax</h1>
<String> Parameter(<String>, <Symbol>, <String>, <String>)<br/>
<String> Parameter(<String>, <Symbol>, <String>)<br/>
<Numeric Expression> Parameter(<String>, <Symbol>, <Numeric Expression>, <String>)<br/>
<Numeric Expression> Parameter(<String>, <Symbol>, <Numeric Expression>)<br/>
<Member> Parameter(<String>, <Hierarchy>, <Member>, <String>)<br/>
<Member> Parameter(<String>, <Hierarchy>, <Member>)
</td>
</tr>
<tr>
<td valign=top><code>Parent</code></td>
<td>Returns the parent of a member.
<h1>Syntax</h1>
<Member>.Parent
</td>
</tr>
<tr>
<td valign=top><code>Percentile</code></td>
<td>Returns the value of the tuple that is at a given percentile of a set.
<h1>Syntax</h1>
<Numeric Expression> Percentile(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>PeriodsToDate</code></td>
<td>Returns a set of periods (members) from a specified level starting with the first period and ending with a specified member.
<h1>Syntax</h1>
<Set> PeriodsToDate()<br/>
<Set> PeriodsToDate(<Level>)<br/>
<Set> PeriodsToDate(<Level>, <Member>)
</td>
</tr>
<tr>
<td valign=top><code>Pi</code></td>
<td>Returns the number 3.14159265358979, the mathematical constant pi, accurate to 15 digits.
<h1>Syntax</h1>
<Numeric Expression> Pi()
</td>
</tr>
<tr>
<td valign=top><code>Pmt</code></td>
<td>Returns a Double specifying the payment for an annuity based on periodic, fixed payments and a fixed interest rate.
<h1>Syntax</h1>
<Numeric Expression> Pmt(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Power</code></td>
<td>Returns the result of a number raised to a power.
<h1>Syntax</h1>
<Numeric Expression> Power(<Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>PrevMember</code></td>
<td>Returns the previous member in the level that contains a specified member.
<h1>Syntax</h1>
<Member>.PrevMember
</td>
</tr>
<tr>
<td valign=top><code>Properties</code></td>
<td>Returns the value of a member property.
<h1>Syntax</h1>
<Member>.Properties(<String Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Qtd</code></td>
<td>A shortcut function for the PeriodsToDate function that specifies the level to be Quarter.
<h1>Syntax</h1>
<Set> Qtd()<br/>
<Set> Qtd(<Member>)
</td>
</tr>
<tr>
<td valign=top><code>RTrim</code></td>
<td>Returns a Variant (String) containing a copy of a specified string without trailing spaces.
<h1>Syntax</h1>
<String> RTrim(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Radians</code></td>
<td>Converts degrees to radians.
<h1>Syntax</h1>
<Numeric Expression> Radians(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Rank</code></td>
<td>Returns the one-based rank of a tuple in a set.
<h1>Syntax</h1>
<Integer> Rank(<Tuple>, <Set>)<br/>
<Integer> Rank(<Tuple>, <Set>, <Numeric Expression>)<br/>
<Integer> Rank(<Member>, <Set>)<br/>
<Integer> Rank(<Member>, <Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Rate</code></td>
<td>Returns a Double specifying the interest rate per period for an annuity.
<h1>Syntax</h1>
<Numeric Expression> Rate(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Rate</code></td>
<td>Returns a Double specifying the interest rate per period for an annuity.
<h1>Syntax</h1>
<Numeric Expression> Rate(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Logical Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Rate</code></td>
<td>Returns a Double specifying the interest rate per period for an annuity.
<h1>Syntax</h1>
<Numeric Expression> Rate(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Rate</code></td>
<td>Returns a Double specifying the interest rate per period for an annuity.
<h1>Syntax</h1>
<Numeric Expression> Rate(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Replace</code></td>
<td>Returns a string in which a specified substring has been replaced with another substring a specified number of times.
<h1>Syntax</h1>
<String> Replace(<String>, <String>, <String>, <Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Replace</code></td>
<td>Returns a string in which a specified substring has been replaced with another substring a specified number of times.
<h1>Syntax</h1>
<String> Replace(<String>, <String>, <String>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Replace</code></td>
<td>Returns a string in which a specified substring has been replaced with another substring a specified number of times.
<h1>Syntax</h1>
<String> Replace(<String>, <String>, <String>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Replace</code></td>
<td>
<h1>Syntax</h1>
<String> Replace(<String>, <String>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>Right</code></td>
<td>Returns a Variant (String) containing a specified number of characters from the right side of a string.
<h1>Syntax</h1>
<String> Right(<String>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Round</code></td>
<td>Returns a number rounded to a specified number of decimal places.
<h1>Syntax</h1>
<Numeric Expression> Round(<Numeric Expression>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Round</code></td>
<td>Returns a number rounded to a specified number of decimal places.
<h1>Syntax</h1>
<Numeric Expression> Round(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>SLN</code></td>
<td>Returns a Double specifying the straight-line depreciation of an asset for a single period.
<h1>Syntax</h1>
<Numeric Expression> SLN(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>SYD</code></td>
<td>Returns a Double specifying the sum-of-years' digits depreciation of an asset for a specified period.
<h1>Syntax</h1>
<Numeric Expression> SYD(<Numeric Expression>, <Numeric Expression>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Second</code></td>
<td>Returns a Variant (Integer) specifying a whole number between 0 and 59, inclusive, representing the second of the minute.
<h1>Syntax</h1>
<Integer> Second(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>SetToStr</code></td>
<td>Constructs a string from a set.
<h1>Syntax</h1>
<String> SetToStr(<Set>)
</td>
</tr>
<tr>
<td valign=top><code>Sgn</code></td>
<td>Returns a Variant (Integer) indicating the sign of a number.
<h1>Syntax</h1>
<Integer> Sgn(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Siblings</code></td>
<td>Returns the siblings of a specified member, including the member itself.
<h1>Syntax</h1>
<Member>.Siblings
</td>
</tr>
<tr>
<td valign=top><code>Sin</code></td>
<td>Returns a Double specifying the sine of an angle.
<h1>Syntax</h1>
<Numeric Expression> Sin(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Sinh</code></td>
<td>Returns the hyperbolic sine of a number.
<h1>Syntax</h1>
<Numeric Expression> Sinh(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Space</code></td>
<td>Returns a Variant (String) consisting of the specified number of spaces.
<h1>Syntax</h1>
<String> Space(<Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Sqr</code></td>
<td>Returns a Double specifying the square root of a number.
<h1>Syntax</h1>
<Numeric Expression> Sqr(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>SqrtPi</code></td>
<td>Returns the square root of (number * pi).
<h1>Syntax</h1>
<Numeric Expression> SqrtPi(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Stddev</code></td>
<td>Alias for Stdev.
<h1>Syntax</h1>
<Numeric Expression> Stddev(<Set>)<br/>
<Numeric Expression> Stddev(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>StddevP</code></td>
<td>Alias for StdevP.
<h1>Syntax</h1>
<Numeric Expression> StddevP(<Set>)<br/>
<Numeric Expression> StddevP(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Stdev</code></td>
<td>Returns the standard deviation of a numeric expression evaluated over a set (unbiased).
<h1>Syntax</h1>
<Numeric Expression> Stdev(<Set>)<br/>
<Numeric Expression> Stdev(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>StdevP</code></td>
<td>Returns the standard deviation of a numeric expression evaluated over a set (biased).
<h1>Syntax</h1>
<Numeric Expression> StdevP(<Set>)<br/>
<Numeric Expression> StdevP(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Str</code></td>
<td>Returns a Variant (String) representation of a number.
<h1>Syntax</h1>
<String> Str(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>StrComp</code></td>
<td>Returns a Variant (Integer) indicating the result of a string comparison.
<h1>Syntax</h1>
<Integer> StrComp(<String>, <String>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>StrComp</code></td>
<td>Returns a Variant (Integer) indicating the result of a string comparison.
<h1>Syntax</h1>
<Integer> StrComp(<String>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>StrReverse</code></td>
<td>Returns a string in which the character order of a specified string is reversed.
<h1>Syntax</h1>
<String> StrReverse(<String>)
</td>
</tr>
<tr>
<td valign=top><code>StrToMember</code></td>
<td>Returns a member from a unique name String in MDX format.
<h1>Syntax</h1>
<Member> StrToMember(<String>)
</td>
</tr>
<tr>
<td valign=top><code>StrToSet</code></td>
<td>Constructs a set from a string expression.
<h1>Syntax</h1>
<Set> StrToSet(<String>[, <Dimension>...])
</td>
</tr>
<tr>
<td valign=top><code>StrToTuple</code></td>
<td>Constructs a tuple from a string.
<h1>Syntax</h1>
<Tuple> StrToTuple(<String>)
</td>
</tr>
<tr>
<td valign=top><code>String</code></td>
<td>
<h1>Syntax</h1>
<String> String(<Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>StripCalculatedMembers</code></td>
<td>Removes calculated members from a set.
<h1>Syntax</h1>
<Set> StripCalculatedMembers(<Set>)
</td>
</tr>
<tr>
<td valign=top><code>Subset</code></td>
<td>Returns a subset of elements from a set.
<h1>Syntax</h1>
<Set> Subset(<Set>, <Numeric Expression>)<br/>
<Set> Subset(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Sum</code></td>
<td>Returns the sum of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> Sum(<Set>)<br/>
<Numeric Expression> Sum(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Tail</code></td>
<td>Returns a subset from the end of a set.
<h1>Syntax</h1>
<Set> Tail(<Set>)<br/>
<Set> Tail(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Tan</code></td>
<td>Returns a Double specifying the tangent of an angle.
<h1>Syntax</h1>
<Numeric Expression> Tan(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Tanh</code></td>
<td>Returns the hyperbolic tangent of a number.
<h1>Syntax</h1>
<Numeric Expression> Tanh(<Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>ThirdQ</code></td>
<td>Returns the 3rd quartile value of a numeric expression evaluated over a set.
<h1>Syntax</h1>
<Numeric Expression> ThirdQ(<Set>)<br/>
<Numeric Expression> ThirdQ(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Time</code></td>
<td>Returns a Variant (Date) indicating the current system time.
<h1>Syntax</h1>
<DateTime> Time()
</td>
</tr>
<tr>
<td valign=top><code>TimeSerial</code></td>
<td>Returns a Variant (Date) containing the time for a specific hour, minute, and second.
<h1>Syntax</h1>
<DateTime> TimeSerial(<Integer>, <Integer>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>TimeValue</code></td>
<td>Returns a Variant (Date) containing the time.
<h1>Syntax</h1>
<DateTime> TimeValue(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>Timer</code></td>
<td>Returns a Single representing the number of seconds elapsed since midnight.
<h1>Syntax</h1>
<Numeric Expression> Timer()
</td>
</tr>
<tr>
<td valign=top><code>ToggleDrillState</code></td>
<td>Toggles the drill state of members. This function is a combination of DrillupMember and DrilldownMember.
<h1>Syntax</h1>
<Set> ToggleDrillState(<Set>, <Set>)<br/>
<Set> ToggleDrillState(<Set>, <Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>TopCount</code></td>
<td>Returns a specified number of items from the top of a set, optionally ordering the set first.
<h1>Syntax</h1>
<Set> TopCount(<Set>, <Numeric Expression>, <Numeric Expression>)<br/>
<Set> TopCount(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>TopPercent</code></td>
<td>Sorts a set and returns the top N elements whose cumulative total is at least a specified percentage.
<h1>Syntax</h1>
<Set> TopPercent(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>TopSum</code></td>
<td>Sorts a set and returns the top N elements whose cumulative total is at least a specified value.
<h1>Syntax</h1>
<Set> TopSum(<Set>, <Numeric Expression>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Trim</code></td>
<td>Returns a Variant (String) containing a copy of a specified string without leading and trailing spaces.
<h1>Syntax</h1>
<String> Trim(<String>)
</td>
</tr>
<tr>
<td valign=top><code>TupleToStr</code></td>
<td>Constructs a string from a tuple.
<h1>Syntax</h1>
<String> TupleToStr(<Tuple>)
</td>
</tr>
<tr>
<td valign=top><code>TypeName</code></td>
<td>Returns a String that provides information about a variable.
<h1>Syntax</h1>
<String> TypeName(<Value>)
</td>
</tr>
<tr>
<td valign=top><code>UCase</code></td>
<td>Returns a string that has been converted to uppercase
<h1>Syntax</h1>
<String> UCase(<String>)
</td>
</tr>
<tr>
<td valign=top><code>Union</code></td>
<td>Returns the union of two sets, optionally retaining duplicates.
<h1>Syntax</h1>
<Set> Union(<Set>, <Set>)<br/>
<Set> Union(<Set>, <Set>, <Symbol>)
</td>
</tr>
<tr>
<td valign=top><code>UniqueName</code></td>
<td>Returns the unique name of a dimension.
<h1>Syntax</h1>
<Dimension>.UniqueName
</td>
</tr>
<tr>
<td valign=top><code>UniqueName</code></td>
<td>Returns the unique name of a hierarchy.
<h1>Syntax</h1>
<Hierarchy>.UniqueName
</td>
</tr>
<tr>
<td valign=top><code>UniqueName</code></td>
<td>Returns the unique name of a level.
<h1>Syntax</h1>
<Level>.UniqueName
</td>
</tr>
<tr>
<td valign=top><code>UniqueName</code></td>
<td>Returns the unique name of a member.
<h1>Syntax</h1>
<Member>.UniqueName
</td>
</tr>
<tr>
<td valign=top><code>Unorder</code></td>
<td>Removes any enforced ordering from a specified set.
<h1>Syntax</h1>
<Set> Unorder(<Set>)
</td>
</tr>
<tr>
<td valign=top><code>Val</code></td>
<td>Returns the numbers contained in a string as a numeric value of appropriate type.
<h1>Syntax</h1>
<Numeric Expression> Val(<String>)
</td>
</tr>
<tr>
<td valign=top><code>ValidMeasure</code></td>
<td>Returns a valid measure in a virtual cube by forcing inapplicable dimensions to their top level.
<h1>Syntax</h1>
<Numeric Expression> ValidMeasure(<Tuple>)
</td>
</tr>
<tr>
<td valign=top><code>Value</code></td>
<td>Returns the value of a measure.
<h1>Syntax</h1>
<Member>.Value
</td>
</tr>
<tr>
<td valign=top><code>Var</code></td>
<td>Returns the variance of a numeric expression evaluated over a set (unbiased).
<h1>Syntax</h1>
<Numeric Expression> Var(<Set>)<br/>
<Numeric Expression> Var(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>VarP</code></td>
<td>Returns the variance of a numeric expression evaluated over a set (biased).
<h1>Syntax</h1>
<Numeric Expression> VarP(<Set>)<br/>
<Numeric Expression> VarP(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>Variance</code></td>
<td>Alias for Var.
<h1>Syntax</h1>
<Numeric Expression> Variance(<Set>)<br/>
<Numeric Expression> Variance(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>VarianceP</code></td>
<td>Alias for VarP.
<h1>Syntax</h1>
<Numeric Expression> VarianceP(<Set>)<br/>
<Numeric Expression> VarianceP(<Set>, <Numeric Expression>)
</td>
</tr>
<tr>
<td valign=top><code>VisualTotals</code></td>
<td>Dynamically totals child members specified in a set using a pattern for the total label in the result set.
<h1>Syntax</h1>
<Set> VisualTotals(<Set>)<br/>
<Set> VisualTotals(<Set>, <String>)
</td>
</tr>
<tr>
<td valign=top><code>Weekday</code></td>
<td>Returns a Variant (Integer) containing a whole number representing the day of the week.
<h1>Syntax</h1>
<Integer> Weekday(<DateTime>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Weekday</code></td>
<td>Returns a Variant (Integer) containing a whole number representing the day of the week.
<h1>Syntax</h1>
<Integer> Weekday(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>WeekdayName</code></td>
<td>Returns a string indicating the specified day of the week.
<h1>Syntax</h1>
<String> WeekdayName(<Integer>, <Logical Expression>, <Integer>)
</td>
</tr>
<tr>
<td valign=top><code>Wtd</code></td>
<td>A shortcut function for the PeriodsToDate function that specifies the level to be Week.
<h1>Syntax</h1>
<Set> Wtd()<br/>
<Set> Wtd(<Member>)
</td>
</tr>
<tr>
<td valign=top><code>XOR</code></td>
<td>Returns whether two conditions are mutually exclusive.
<h1>Syntax</h1>
<Logical Expression> XOR <Logical Expression>
</td>
</tr>
<tr>
<td valign=top><code>Year</code></td>
<td>Returns a Variant (Integer) containing a whole number representing the year.
<h1>Syntax</h1>
<Integer> Year(<DateTime>)
</td>
</tr>
<tr>
<td valign=top><code>Ytd</code></td>
<td>A shortcut function for the PeriodsToDate function that specifies the level to be Year.
<h1>Syntax</h1>
<Set> Ytd()<br/>
<Set> Ytd(<Member>)
</td>
</tr>
<tr>
<td valign=top><code>_CaseMatch</code></td>
<td>Evaluates various expressions, and returns the corresponding expression for the first which matches a particular value.
<h1>Syntax</h1>
Case <Expression> When <Expression> Then <Expression> [...] [Else <Expression>] End
</td>
</tr>
<tr>
<td valign=top><code>_CaseTest</code></td>
<td>Evaluates various conditions, and returns the corresponding expression for the first which evaluates to true.
<h1>Syntax</h1>
Case When <Logical Expression> Then <Expression> [...] [Else <Expression>] End
</td>
</tr>
<tr>
<td valign=top><code>{}</code></td>
<td>Brace operator constructs a set.
<h1>Syntax</h1>
{<Member> [, <Member>...]}
</td>
</tr>
<tr>
<td valign=top><code>||</code></td>
<td>Concatenates two strings.
<h1>Syntax</h1>
<String> || <String>
</td>
</tr>
</table>
<br />
<br />
<p>
Author: Julian Hyde; last modified May 2011.<br/>
Version: $Id$ (<a href="http://p4web.eigenbase.org/open/mondrian/doc/mdx.html?ac=22">log</a>)<br/>
Copyright (C) 2005-2011 Pentaho
</p>
<br />
<!-- doc2web end -->
</body>
</html>
|