This file is indexed.

/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">&nbsp;</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">&nbsp;</a></h3>

<p>A basic MDX query looks like this:</p>

<blockquote><code>
SELECT {[Measures].[Unit Sales], [Measures].[Store Sales]} ON COLUMNS,<br />
&nbsp;&nbsp;{[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">&nbsp;</a></h3>

<h1>StrToSet and StrToTuple<a name="StrToSet_and_StrToTuple">&nbsp;</a></h1>

<p>The <code>StrToSet()</code> and <code>StrToTuple()</code> functions take an extra parameter.</p>

<h1>Parsing<a name="Parsing">&nbsp;</a></h1>

<p>Parsing is case-sensitive.</p>

<h1>Parameters<a name="Parameters">&nbsp;</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">&nbsp;</a></h4>

<p>The Cast operator converts scalar expressions to other types. The syntax is</p>
<blockquote>
	<p><code>Cast(&lt;Expression&gt; AS &lt;Type&gt;)</code></p>
</blockquote>
<p>where &lt;Type&gt; 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">&nbsp;</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/>
&nbsp;&nbsp;&nbsp;FILTER([Product].[Product Family].MEMBERS,<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Product].[Product Family].CurrentMember NOT IN<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{[Product].[All Products].firstChild,<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Product].[All Products].lastChild}) ON ROWS<br/>
FROM [Sales]</code>
</blockquote>

<h3><code>MATCHES</code> and <code>NOT MATCHES</code><a name="Matches">&nbsp;</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/>
&nbsp;&nbsp;&nbsp;Filter({[Employees].MEMBERS},<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[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">&nbsp;</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">&nbsp;</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">&nbsp;</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>
&lt;Measure name="Store Sales" column="store_sales" aggregator="sum" formatString="#,###.00"/&gt;
</code></blockquote>

<p>and calculated members use the &lt;CalculatedMemberProperty&gt; sub-element:</p>

<blockquote><code>
&lt;CalculatedMember name="Profit" dimension="Measures" formula="[Measures].[Store Sales] - [Measures].[Store Cost]"&gt;<br />
&nbsp;&nbsp;&lt;CalculatedMemberProperty name="FORMAT_STRING" value="$#,##0.00"/&gt;<br />
&lt;/CalculatedMember&gt;
</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 />
&nbsp;&nbsp;&nbsp;'([Measures].[Store Sales] - [Measures].[Store Cost])',<br />
&nbsp;&nbsp;FORMAT_STRING = Iif([Measures].[Profit] < 100000, '|#|style=green', '|#|style=red')<br />
SELECT {[Measures].[Store Sales], [Measures].[Profit]} ON COLUMNS,<br />
&nbsp;&nbsp;{[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>&lt;Hierarchy&gt;.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 &#39;Aggregate(&lt;Hierarchy&gt;.CurrentMember.Children); for internal use.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; $AggregateChildren(&lt;Hierarchy&gt;)
  </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>
    &lt;Numeric Expression&gt; * &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>*</code></td>
  <td>Returns the cross product of two sets.
    <h1>Syntax</h1>
    &lt;Set&gt; * &lt;Set&gt;<br/>
    &lt;Member&gt; * &lt;Set&gt;<br/>
    &lt;Set&gt; * &lt;Member&gt;<br/>
    &lt;Member&gt; * &lt;Member&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>+</code></td>
  <td>Adds two numbers.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; + &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>-</code></td>
  <td>Subtracts two numbers.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; - &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>-</code></td>
  <td>Returns the negative of a number.
    <h1>Syntax</h1>
    - &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>/</code></td>
  <td>Divides two numbers.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; / &lt;Numeric Expression&gt;
  </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>
    &lt;Member&gt; : &lt;Member&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&lt;</code></td>
  <td>Returns whether an expression is less than another.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; &lt; &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&lt;</code></td>
  <td>Returns whether an expression is less than another.
    <h1>Syntax</h1>
    &lt;String&gt; &lt; &lt;String&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&lt;=</code></td>
  <td>Returns whether an expression is less than or equal to another.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; &lt;= &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&lt;=</code></td>
  <td>Returns whether an expression is less than or equal to another.
    <h1>Syntax</h1>
    &lt;String&gt; &lt;= &lt;String&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&lt;&gt;</code></td>
  <td>Returns whether two expressions are not equal.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; &lt;&gt; &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&lt;&gt;</code></td>
  <td>Returns whether two expressions are not equal.
    <h1>Syntax</h1>
    &lt;String&gt; &lt;&gt; &lt;String&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>=</code></td>
  <td>Returns whether two expressions are equal.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; = &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>=</code></td>
  <td>Returns whether two expressions are equal.
    <h1>Syntax</h1>
    &lt;String&gt; = &lt;String&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&gt;</code></td>
  <td>Returns whether an expression is greater than another.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; &gt; &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&gt;</code></td>
  <td>Returns whether an expression is greater than another.
    <h1>Syntax</h1>
    &lt;String&gt; &gt; &lt;String&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&gt;=</code></td>
  <td>Returns whether an expression is greater than or equal to another.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; &gt;= &lt;Numeric Expression&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>&gt;=</code></td>
  <td>Returns whether an expression is greater than or equal to another.
    <h1>Syntax</h1>
    &lt;String&gt; &gt;= &lt;String&gt;
  </td>
</tr>
<tr>
  <td valign=top><code>AND</code></td>
  <td>Returns the conjunction of two conditions.
    <h1>Syntax</h1>
    &lt;Logical Expression&gt; AND &lt;Logical Expression&gt;
  </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>
    &lt;Numeric Expression&gt; Abs(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Acos(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Acosh(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>AddCalculatedMembers</code></td>
  <td>Adds calculated members to a set.
    <h1>Syntax</h1>
    &lt;Set&gt; AddCalculatedMembers(&lt;Set&gt;)
  </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>
    &lt;Numeric Expression&gt; Aggregate(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Aggregate(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Dimension&gt;.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>
    &lt;Hierarchy&gt;.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>
    &lt;Level&gt;.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>
    &lt;Member&gt; Ancestor(&lt;Member&gt;, &lt;Level&gt;)<br/>
    &lt;Member&gt; Ancestor(&lt;Member&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Integer&gt; Asc(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>AscB</code></td>
  <td>See Asc.
    <h1>Syntax</h1>
    &lt;Integer&gt; AscB(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>AscW</code></td>
  <td>See Asc.
    <h1>Syntax</h1>
    &lt;Integer&gt; AscW(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Ascendants</code></td>
  <td>Returns the set of the ascendants of a specified member.
    <h1>Syntax</h1>
    &lt;Set&gt; Ascendants(&lt;Member&gt;)
  </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>
    &lt;Numeric Expression&gt; Asin(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Asinh(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Atan2(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Atanh(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Atn</code></td>
  <td>Returns a Double specifying the arctangent of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Atn(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Avg(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Avg(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; BottomCount(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; BottomCount(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; BottomPercent(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; BottomSum(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Logical Expression&gt; CBool(&lt;Value&gt;)
  </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>
    &lt;Integer&gt; CByte(&lt;Value&gt;)
  </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>
    &lt;DateTime&gt; CDate(&lt;Value&gt;)
  </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>
    &lt;Numeric Expression&gt; CDbl(&lt;Value&gt;)
  </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>
    &lt;Integer&gt; CInt(&lt;Value&gt;)
  </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(&lt;&lt;Exp&gt;&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>CalculatedChild</code></td>
  <td>Returns an existing calculated child member with name &lt;String&gt; from the specified &lt;Member&gt;.
    <h1>Syntax</h1>
    &lt;Member&gt; &lt;Member&gt;.CalculatedChild(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Caption</code></td>
  <td>Returns the caption of a dimension.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.Caption
  </td>
</tr>
<tr>
  <td valign=top><code>Caption</code></td>
  <td>Returns the caption of a hierarchy.
    <h1>Syntax</h1>
    &lt;Hierarchy&gt;.Caption
  </td>
</tr>
<tr>
  <td valign=top><code>Caption</code></td>
  <td>Returns the caption of a level.
    <h1>Syntax</h1>
    &lt;Level&gt;.Caption
  </td>
</tr>
<tr>
  <td valign=top><code>Caption</code></td>
  <td>Returns the caption of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.Caption
  </td>
</tr>
<tr>
  <td valign=top><code>Cast</code></td>
  <td>Converts values to another type.
    <h1>Syntax</h1>
    Cast(&lt;Expression&gt; AS &lt;Type&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Children</code></td>
  <td>Returns the children of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;String&gt; Chr(&lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>ChrB</code></td>
  <td>See Chr.
    <h1>Syntax</h1>
    &lt;String&gt; ChrB(&lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>ChrW</code></td>
  <td>See Chr.
    <h1>Syntax</h1>
    &lt;String&gt; ChrW(&lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>ClosingPeriod</code></td>
  <td>Returns the last descendant of a member at a level.
    <h1>Syntax</h1>
    &lt;Member&gt; ClosingPeriod()<br/>
    &lt;Member&gt; ClosingPeriod(&lt;Level&gt;)<br/>
    &lt;Member&gt; ClosingPeriod(&lt;Level&gt;, &lt;Member&gt;)<br/>
    &lt;Member&gt; ClosingPeriod(&lt;Member&gt;)
  </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(&lt;Value Expression&gt;[, &lt;Value Expression&gt;...])
  </td>
</tr>
<tr>
  <td valign=top><code>Correlation</code></td>
  <td>Returns the correlation of two series evaluated over a set.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Correlation(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; Correlation(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Cos</code></td>
  <td>Returns a Double specifying the cosine of an angle.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Cos(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Cosh</code></td>
  <td>Returns the hyperbolic cosine of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Cosh(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Count(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Count(&lt;Set&gt;, &lt;Symbol&gt;)
  </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>
    &lt;Set&gt;.Count
  </td>
</tr>
<tr>
  <td valign=top><code>Cousin</code></td>
  <td>Returns the member with the same relative position under &lt;ancestor member&gt; as the member specified.
    <h1>Syntax</h1>
    &lt;Member&gt; Cousin(&lt;Member&gt;, &lt;Ancestor Member&gt;)
  </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>
    &lt;Numeric Expression&gt; Covariance(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; Covariance(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; CovarianceN(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; CovarianceN(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Crossjoin</code></td>
  <td>Returns the cross product of two sets.
    <h1>Syntax</h1>
    &lt;Set&gt; Crossjoin(&lt;Set&gt;, &lt;Set&gt;)
  </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>
    &lt;Member&gt; CurrentDateMember(&lt;Hierarchy&gt;, &lt;String&gt;)
  </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>
    &lt;Member&gt; CurrentDateMember(&lt;Hierarchy&gt;, &lt;String&gt;, &lt;Symbol&gt;)
  </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>
    &lt;String&gt; CurrentDateString(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>CurrentMember</code></td>
  <td>Returns the current member along a dimension during an iteration.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.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>
    &lt;Hierarchy&gt;.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>
    &lt;Numeric Expression&gt; DDB(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; DDB(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Member&gt;.DataMember
  </td>
</tr>
<tr>
  <td valign=top><code>Date</code></td>
  <td>Returns a Variant (Date) containing the current system date.
    <h1>Syntax</h1>
    &lt;DateTime&gt; 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>
    &lt;DateTime&gt; DateAdd(&lt;String&gt;, &lt;Numeric Expression&gt;, &lt;DateTime&gt;)
  </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>
    &lt;Numeric Expression&gt; DateDiff(&lt;String&gt;, &lt;DateTime&gt;, &lt;DateTime&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;Numeric Expression&gt; DateDiff(&lt;String&gt;, &lt;DateTime&gt;, &lt;DateTime&gt;, &lt;Integer&gt;)
  </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>
    &lt;Numeric Expression&gt; DateDiff(&lt;String&gt;, &lt;DateTime&gt;, &lt;DateTime&gt;)
  </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>
    &lt;Integer&gt; DatePart(&lt;String&gt;, &lt;DateTime&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;Integer&gt; DatePart(&lt;String&gt;, &lt;DateTime&gt;, &lt;Integer&gt;)
  </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>
    &lt;Integer&gt; DatePart(&lt;String&gt;, &lt;DateTime&gt;)
  </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>
    &lt;DateTime&gt; DateSerial(&lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>DateValue</code></td>
  <td>Returns a Variant (Date).
    <h1>Syntax</h1>
    &lt;DateTime&gt; DateValue(&lt;DateTime&gt;)
  </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>
    &lt;Integer&gt; Day(&lt;DateTime&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>DefaultMember</code></td>
  <td>Returns the default member of a dimension.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.DefaultMember
  </td>
</tr>
<tr>
  <td valign=top><code>DefaultMember</code></td>
  <td>Returns the default member of a hierarchy.
    <h1>Syntax</h1>
    &lt;Hierarchy&gt;.DefaultMember
  </td>
</tr>
<tr>
  <td valign=top><code>Degrees</code></td>
  <td>Converts radians to degrees.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Degrees(&lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; Descendants(&lt;Member&gt;)<br/>
    &lt;Set&gt; Descendants(&lt;Member&gt;, &lt;Level&gt;)<br/>
    &lt;Set&gt; Descendants(&lt;Member&gt;, &lt;Level&gt;, &lt;Symbol&gt;)<br/>
    &lt;Set&gt; Descendants(&lt;Member&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; Descendants(&lt;Member&gt;, &lt;Numeric Expression&gt;, &lt;Symbol&gt;)<br/>
    &lt;Set&gt; Descendants(&lt;Member&gt;, &lt;Empty&gt;, &lt;Symbol&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Dimension</code></td>
  <td>Returns the dimension that contains a specified hierarchy.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.Dimension
  </td>
</tr>
<tr>
  <td valign=top><code>Dimension</code></td>
  <td>Returns the dimension that contains a specified hierarchy.
    <h1>Syntax</h1>
    &lt;Hierarchy&gt;.Dimension
  </td>
</tr>
<tr>
  <td valign=top><code>Dimension</code></td>
  <td>Returns the dimension that contains a specified level.
    <h1>Syntax</h1>
    &lt;Level&gt;.Dimension
  </td>
</tr>
<tr>
  <td valign=top><code>Dimension</code></td>
  <td>Returns the dimension that contains a specified member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Dimension&gt; Dimensions(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Dimensions</code></td>
  <td>Returns the dimension whose name is specified by a string.
    <h1>Syntax</h1>
    &lt;Dimension&gt; Dimensions(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Distinct</code></td>
  <td>Eliminates duplicate tuples from a set.
    <h1>Syntax</h1>
    &lt;Set&gt; Distinct(&lt;Set&gt;)
  </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>
    &lt;Set&gt; DrilldownLevel(&lt;Set&gt;)<br/>
    &lt;Set&gt; DrilldownLevel(&lt;Set&gt;, &lt;Level&gt;)<br/>
    &lt;Set&gt; DrilldownLevel(&lt;Set&gt;, &lt;Empty&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; DrilldownLevelBottom(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; DrilldownLevelBottom(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Level&gt;)<br/>
    &lt;Set&gt; DrilldownLevelBottom(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Level&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; DrilldownLevelBottom(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Empty&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; DrilldownLevelTop(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; DrilldownLevelTop(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Level&gt;)<br/>
    &lt;Set&gt; DrilldownLevelTop(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Level&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; DrilldownLevelTop(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Empty&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; DrilldownMember(&lt;Set&gt;, &lt;Set&gt;)<br/>
    &lt;Set&gt; DrilldownMember(&lt;Set&gt;, &lt;Set&gt;, &lt;Symbol&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Except</code></td>
  <td>Finds the difference between two sets, optionally retaining duplicates.
    <h1>Syntax</h1>
    &lt;Set&gt; Except(&lt;Set&gt;, &lt;Set&gt;)<br/>
    &lt;Set&gt; Except(&lt;Set&gt;, &lt;Set&gt;, &lt;Symbol&gt;)
  </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>
    &lt;Set&gt; Exists(&lt;Set&gt;, &lt;Set&gt;)
  </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>
    &lt;Numeric Expression&gt; Exp(&lt;Numeric Expression&gt;)
  </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(&lt;Set&gt;, &lt;Dimension&gt;[, &lt;Dimension&gt;...])
  </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>
    &lt;Numeric Expression&gt; FV(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; FV(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; FV(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; Filter(&lt;Set&gt;, &lt;Logical Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FirstChild</code></td>
  <td>Returns the first child of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Numeric Expression&gt; FirstQ(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; FirstQ(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FirstSibling</code></td>
  <td>Returns the first child of the parent of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Integer&gt; Fix(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Format</code></td>
  <td>Formats a number or date to a string.
    <h1>Syntax</h1>
    &lt;String&gt; Format(&lt;Member&gt;, &lt;String&gt;)<br/>
    &lt;String&gt; Format(&lt;Numeric Expression&gt;, &lt;String&gt;)<br/>
    &lt;String&gt; Format(&lt;DateTime&gt;, &lt;String&gt;)
  </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>
    &lt;String&gt; FormatCurrency(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatCurrency(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatCurrency(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatCurrency(&lt;Value&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatCurrency(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatDateTime</code></td>
  <td>Returns an expression formatted as a date or time.
    <h1>Syntax</h1>
    &lt;String&gt; FormatDateTime(&lt;DateTime&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatDateTime</code></td>
  <td>Returns an expression formatted as a date or time.
    <h1>Syntax</h1>
    &lt;String&gt; FormatDateTime(&lt;DateTime&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatNumber</code></td>
  <td>Returns an expression formatted as a number.
    <h1>Syntax</h1>
    &lt;String&gt; FormatNumber(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatNumber</code></td>
  <td>Returns an expression formatted as a number.
    <h1>Syntax</h1>
    &lt;String&gt; FormatNumber(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatNumber</code></td>
  <td>Returns an expression formatted as a number.
    <h1>Syntax</h1>
    &lt;String&gt; FormatNumber(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatNumber</code></td>
  <td>Returns an expression formatted as a number.
    <h1>Syntax</h1>
    &lt;String&gt; FormatNumber(&lt;Value&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>FormatNumber</code></td>
  <td>Returns an expression formatted as a number.
    <h1>Syntax</h1>
    &lt;String&gt; FormatNumber(&lt;Value&gt;)
  </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>
    &lt;String&gt; FormatPercent(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatPercent(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatPercent(&lt;Value&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatPercent(&lt;Value&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; FormatPercent(&lt;Value&gt;)
  </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>
    &lt;Set&gt; Generate(&lt;Set&gt;, &lt;Set&gt;)<br/>
    &lt;Set&gt; Generate(&lt;Set&gt;, &lt;Set&gt;, &lt;Symbol&gt;)
  </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>
    &lt;String&gt; Generate(&lt;Set&gt;, &lt;String&gt;)<br/>
    &lt;String&gt; Generate(&lt;Set&gt;, &lt;String&gt;, &lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Head</code></td>
  <td>Returns the first specified number of elements in a set.
    <h1>Syntax</h1>
    &lt;Set&gt; Head(&lt;Set&gt;)<br/>
    &lt;Set&gt; Head(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Hex</code></td>
  <td>Returns a String representing the hexadecimal value of a number.
    <h1>Syntax</h1>
    &lt;String&gt; Hex(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Hierarchize</code></td>
  <td>Orders the members of a set in a hierarchy.
    <h1>Syntax</h1>
    &lt;Set&gt; Hierarchize(&lt;Set&gt;)<br/>
    &lt;Set&gt; Hierarchize(&lt;Set&gt;, &lt;Symbol&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Hierarchy</code></td>
  <td>Returns a level&#39;s hierarchy.
    <h1>Syntax</h1>
    &lt;Level&gt;.Hierarchy
  </td>
</tr>
<tr>
  <td valign=top><code>Hierarchy</code></td>
  <td>Returns a member&#39;s hierarchy.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Integer&gt; Hour(&lt;DateTime&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>IIf</code></td>
  <td>Returns one of two tuples determined by a logical test.
    <h1>Syntax</h1>
    &lt;Tuple&gt; IIf(&lt;Logical Expression&gt;, &lt;Tuple&gt;, &lt;Tuple&gt;)
  </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>
    &lt;Dimension&gt; IIf(&lt;Logical Expression&gt;, &lt;Dimension&gt;, &lt;Dimension&gt;)
  </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>
    &lt;Hierarchy&gt; IIf(&lt;Logical Expression&gt;, &lt;Hierarchy&gt;, &lt;Hierarchy&gt;)
  </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>
    &lt;Level&gt; IIf(&lt;Logical Expression&gt;, &lt;Level&gt;, &lt;Level&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>IIf</code></td>
  <td>Returns boolean determined by a logical test.
    <h1>Syntax</h1>
    &lt;Logical Expression&gt; IIf(&lt;Logical Expression&gt;, &lt;Logical Expression&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Member&gt; IIf(&lt;Logical Expression&gt;, &lt;Member&gt;, &lt;Member&gt;)
  </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>
    &lt;Numeric Expression&gt; IIf(&lt;Logical Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; IIf(&lt;Logical Expression&gt;, &lt;Set&gt;, &lt;Set&gt;)
  </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>
    &lt;String&gt; IIf(&lt;Logical Expression&gt;, &lt;String&gt;, &lt;String&gt;)
  </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>
    &lt;Numeric Expression&gt; IPmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; IPmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; IPmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; IRR(&lt;Array&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; IRR(&lt;Array&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>IS</code></td>
  <td>Returns whether two objects are the same
    <h1>Syntax</h1>
    &lt;Member&gt; IS &lt;Member&gt;<br/>
    &lt;Level&gt; IS &lt;Level&gt;<br/>
    &lt;Hierarchy&gt; IS &lt;Hierarchy&gt;<br/>
    &lt;Dimension&gt; IS &lt;Dimension&gt;<br/>
    &lt;Tuple&gt; IS &lt;Tuple&gt;
  </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>
    &lt;Member&gt; IS EMPTY<br/>
    &lt;Tuple&gt; IS EMPTY
  </td>
</tr>
<tr>
  <td valign=top><code>IS NULL</code></td>
  <td>Returns whether an object is null
    <h1>Syntax</h1>
    &lt;Member&gt; IS NULL<br/>
    &lt;Level&gt; IS NULL<br/>
    &lt;Hierarchy&gt; IS NULL<br/>
    &lt;Dimension&gt; 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>
    &lt;Numeric Expression&gt; InStr(&lt;String&gt;, &lt;String&gt;)
  </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>
    &lt;Integer&gt; InStrRev(&lt;String&gt;, &lt;String&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;Integer&gt; InStrRev(&lt;String&gt;, &lt;String&gt;, &lt;Integer&gt;)
  </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>
    &lt;Integer&gt; InStrRev(&lt;String&gt;, &lt;String&gt;)
  </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>
    &lt;Integer&gt; Int(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Intersect</code></td>
  <td>Returns the intersection of two input sets, optionally retaining duplicates.
    <h1>Syntax</h1>
    &lt;Set&gt; Intersect(&lt;Set&gt;, &lt;Set&gt;, &lt;Symbol&gt;)<br/>
    &lt;Set&gt; Intersect(&lt;Set&gt;, &lt;Set&gt;)
  </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>
    &lt;Logical Expression&gt; IsDate(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>IsEmpty</code></td>
  <td>Determines if an expression evaluates to the empty cell value.
    <h1>Syntax</h1>
    &lt;Logical Expression&gt; IsEmpty(&lt;String&gt;)<br/>
    &lt;Logical Expression&gt; IsEmpty(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Item</code></td>
  <td>Returns a member from the tuple specified in &lt;Tuple&gt;. The member to be returned is specified by the zero-based position of the member in the set in &lt;Index&gt;.
    <h1>Syntax</h1>
    &lt;Member&gt; &lt;Tuple&gt;.Item(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Item</code></td>
  <td>Returns a tuple from the set specified in &lt;Set&gt;. The tuple to be returned is specified by the zero-based position of the tuple in the set in &lt;Index&gt;.
    <h1>Syntax</h1>
    &lt;Member&gt; &lt;Set&gt;.Item(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Item</code></td>
  <td>Returns a tuple from the set specified in &lt;Set&gt;. The tuple to be returned is specified by the member name (or names) in &lt;String&gt;.
    <h1>Syntax</h1>
    &lt;Set&gt;.Item(&lt;String&gt; [, ...])
  </td>
</tr>
<tr>
  <td valign=top><code>LCase</code></td>
  <td>Returns a String that has been converted to lowercase.
    <h1>Syntax</h1>
    &lt;String&gt; LCase(&lt;String&gt;)
  </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>
    &lt;String&gt; LTrim(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Lag</code></td>
  <td>Returns a member further along the specified member&#39;s dimension.
    <h1>Syntax</h1>
    &lt;Member&gt; &lt;Member&gt;.Lag(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>LastChild</code></td>
  <td>Returns the last child of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Set&gt; LastPeriods(&lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; LastPeriods(&lt;Numeric Expression&gt;, &lt;Member&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>LastSibling</code></td>
  <td>Returns the last child of the parent of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.LastSibling
  </td>
</tr>
<tr>
  <td valign=top><code>Lead</code></td>
  <td>Returns a member further along the specified member&#39;s dimension.
    <h1>Syntax</h1>
    &lt;Member&gt; &lt;Member&gt;.Lead(&lt;Numeric Expression&gt;)
  </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>
    &lt;String&gt; Left(&lt;String&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Len</code></td>
  <td>Returns the number of characters in a string
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Len(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Level</code></td>
  <td>Returns a member&#39;s level.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Level&gt; &lt;Hierarchy&gt;.Levels(&lt;Numeric Expression&gt;)
  </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>
    &lt;Level&gt; &lt;Hierarchy&gt;.Levels(&lt;String&gt;)
  </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>
    &lt;Level&gt; Levels(&lt;String&gt;)
  </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>
    &lt;Numeric Expression&gt; LinRegIntercept(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; LinRegIntercept(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; LinRegPoint(&lt;Numeric Expression&gt;, &lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; LinRegPoint(&lt;Numeric Expression&gt;, &lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; LinRegR2(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; LinRegR2(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; LinRegSlope(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; LinRegSlope(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; LinRegVariance(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Numeric Expression&gt; LinRegVariance(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Log</code></td>
  <td>Returns a Double specifying the natural logarithm of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Log(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Log10</code></td>
  <td>Returns the base-10 logarithm of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Log10(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; MIRR(&lt;Array&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Max(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Max(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Median(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Median(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Members</code></td>
  <td>Returns the set of members in a dimension.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.Members
  </td>
</tr>
<tr>
  <td valign=top><code>Members</code></td>
  <td>Returns the set of members in a hierarchy.
    <h1>Syntax</h1>
    &lt;Hierarchy&gt;.Members
  </td>
</tr>
<tr>
  <td valign=top><code>Members</code></td>
  <td>Returns the set of members in a level.
    <h1>Syntax</h1>
    &lt;Level&gt;.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>
    &lt;Member&gt; Members(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Mid</code></td>
  <td>Returns a specified number of characters from a string.
    <h1>Syntax</h1>
    &lt;String&gt; Mid(&lt;String&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Mid</code></td>
  <td>Returns a specified number of characters from a string.
    <h1>Syntax</h1>
    &lt;String&gt; Mid(&lt;String&gt;, &lt;Integer&gt;)
  </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>
    &lt;Numeric Expression&gt; Min(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Min(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Integer&gt; Minute(&lt;DateTime&gt;)
  </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>
    &lt;Integer&gt; Month(&lt;DateTime&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>MonthName</code></td>
  <td>Returns a string indicating the specified month.
    <h1>Syntax</h1>
    &lt;String&gt; MonthName(&lt;Integer&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Set&gt; Mtd()<br/>
    &lt;Set&gt; Mtd(&lt;Member&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>NOT</code></td>
  <td>Returns the negation of a condition.
    <h1>Syntax</h1>
    NOT &lt;Logical Expression&gt;
  </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>
    &lt;Numeric Expression&gt; NPV(&lt;Numeric Expression&gt;, &lt;Array&gt;)
  </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>
    &lt;Numeric Expression&gt; NPer(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Name</code></td>
  <td>Returns the name of a dimension.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.Name
  </td>
</tr>
<tr>
  <td valign=top><code>Name</code></td>
  <td>Returns the name of a hierarchy.
    <h1>Syntax</h1>
    &lt;Hierarchy&gt;.Name
  </td>
</tr>
<tr>
  <td valign=top><code>Name</code></td>
  <td>Returns the name of a level.
    <h1>Syntax</h1>
    &lt;Level&gt;.Name
  </td>
</tr>
<tr>
  <td valign=top><code>Name</code></td>
  <td>Returns the name of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Member&gt;.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>
    &lt;Set&gt; NonEmptyCrossJoin(&lt;Set&gt;, &lt;Set&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Now</code></td>
  <td>Returns a Variant (Date) specifying the current date and time according your computer&#39;s system date and time.
    <h1>Syntax</h1>
    &lt;DateTime&gt; Now()
  </td>
</tr>
<tr>
  <td valign=top><code>OR</code></td>
  <td>Returns the disjunction of two conditions.
    <h1>Syntax</h1>
    &lt;Logical Expression&gt; OR &lt;Logical Expression&gt;
  </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>
    &lt;String&gt; Oct(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>OpeningPeriod</code></td>
  <td>Returns the first descendant of a member at a level.
    <h1>Syntax</h1>
    &lt;Member&gt; OpeningPeriod()<br/>
    &lt;Member&gt; OpeningPeriod(&lt;Level&gt;)<br/>
    &lt;Member&gt; OpeningPeriod(&lt;Level&gt;, &lt;Member&gt;)
  </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>
    &lt;Set&gt; Order(&lt;Set&gt;, &lt;Value&gt;, &lt;Symbol&gt;)<br/>
    &lt;Set&gt; Order(&lt;Set&gt;, &lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Ordinal</code></td>
  <td>Returns the zero-based ordinal value associated with a level.
    <h1>Syntax</h1>
    &lt;Level&gt;.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>
    &lt;Numeric Expression&gt; PPmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; PPmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; PPmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; PV(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Member&gt; ParallelPeriod()<br/>
    &lt;Member&gt; ParallelPeriod(&lt;Level&gt;)<br/>
    &lt;Member&gt; ParallelPeriod(&lt;Level&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Member&gt; ParallelPeriod(&lt;Level&gt;, &lt;Numeric Expression&gt;, &lt;Member&gt;)
  </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>
    &lt;Value&gt; ParamRef(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Parameter</code></td>
  <td>Returns default value of parameter.
    <h1>Syntax</h1>
    &lt;String&gt; Parameter(&lt;String&gt;, &lt;Symbol&gt;, &lt;String&gt;, &lt;String&gt;)<br/>
    &lt;String&gt; Parameter(&lt;String&gt;, &lt;Symbol&gt;, &lt;String&gt;)<br/>
    &lt;Numeric Expression&gt; Parameter(&lt;String&gt;, &lt;Symbol&gt;, &lt;Numeric Expression&gt;, &lt;String&gt;)<br/>
    &lt;Numeric Expression&gt; Parameter(&lt;String&gt;, &lt;Symbol&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Member&gt; Parameter(&lt;String&gt;, &lt;Hierarchy&gt;, &lt;Member&gt;, &lt;String&gt;)<br/>
    &lt;Member&gt; Parameter(&lt;String&gt;, &lt;Hierarchy&gt;, &lt;Member&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Parent</code></td>
  <td>Returns the parent of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Numeric Expression&gt; Percentile(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; PeriodsToDate()<br/>
    &lt;Set&gt; PeriodsToDate(&lt;Level&gt;)<br/>
    &lt;Set&gt; PeriodsToDate(&lt;Level&gt;, &lt;Member&gt;)
  </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>
    &lt;Numeric Expression&gt; 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>
    &lt;Numeric Expression&gt; Pmt(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Power</code></td>
  <td>Returns the result of a number raised to a power.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Power(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Member&gt;.PrevMember
  </td>
</tr>
<tr>
  <td valign=top><code>Properties</code></td>
  <td>Returns the value of a member property.
    <h1>Syntax</h1>
    &lt;Member&gt;.Properties(&lt;String Expression&gt;)
  </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>
    &lt;Set&gt; Qtd()<br/>
    &lt;Set&gt; Qtd(&lt;Member&gt;)
  </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>
    &lt;String&gt; RTrim(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Radians</code></td>
  <td>Converts degrees to radians.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Radians(&lt;Numeric Expression&gt;)
  </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>
    &lt;Integer&gt; Rank(&lt;Tuple&gt;, &lt;Set&gt;)<br/>
    &lt;Integer&gt; Rank(&lt;Tuple&gt;, &lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Integer&gt; Rank(&lt;Member&gt;, &lt;Set&gt;)<br/>
    &lt;Integer&gt; Rank(&lt;Member&gt;, &lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Rate(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Rate(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Logical Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Rate(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Rate(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;String&gt; Replace(&lt;String&gt;, &lt;String&gt;, &lt;String&gt;, &lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; Replace(&lt;String&gt;, &lt;String&gt;, &lt;String&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </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>
    &lt;String&gt; Replace(&lt;String&gt;, &lt;String&gt;, &lt;String&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Replace</code></td>
  <td>
    <h1>Syntax</h1>
    &lt;String&gt; Replace(&lt;String&gt;, &lt;String&gt;, &lt;String&gt;)
  </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>
    &lt;String&gt; Right(&lt;String&gt;, &lt;Integer&gt;)
  </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>
    &lt;Numeric Expression&gt; Round(&lt;Numeric Expression&gt;, &lt;Integer&gt;)
  </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>
    &lt;Numeric Expression&gt; Round(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; SLN(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>SYD</code></td>
  <td>Returns a Double specifying the sum-of-years&#39; digits depreciation of an asset for a specified period.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; SYD(&lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Integer&gt; Second(&lt;DateTime&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>SetToStr</code></td>
  <td>Constructs a string from a set.
    <h1>Syntax</h1>
    &lt;String&gt; SetToStr(&lt;Set&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Sgn</code></td>
  <td>Returns a Variant (Integer) indicating the sign of a number.
    <h1>Syntax</h1>
    &lt;Integer&gt; Sgn(&lt;Numeric Expression&gt;)
  </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>
    &lt;Member&gt;.Siblings
  </td>
</tr>
<tr>
  <td valign=top><code>Sin</code></td>
  <td>Returns a Double specifying the sine of an angle.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Sin(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Sinh</code></td>
  <td>Returns the hyperbolic sine of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Sinh(&lt;Numeric Expression&gt;)
  </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>
    &lt;String&gt; Space(&lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Sqr</code></td>
  <td>Returns a Double specifying the square root of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Sqr(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>SqrtPi</code></td>
  <td>Returns the square root of (number * pi).
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; SqrtPi(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Stddev</code></td>
  <td>Alias for Stdev.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Stddev(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Stddev(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>StddevP</code></td>
  <td>Alias for StdevP.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; StddevP(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; StddevP(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Stdev(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Stdev(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; StdevP(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; StdevP(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Str</code></td>
  <td>Returns a Variant (String) representation of a number.
    <h1>Syntax</h1>
    &lt;String&gt; Str(&lt;Value&gt;)
  </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>
    &lt;Integer&gt; StrComp(&lt;String&gt;, &lt;String&gt;, &lt;Integer&gt;)
  </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>
    &lt;Integer&gt; StrComp(&lt;String&gt;, &lt;String&gt;)
  </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>
    &lt;String&gt; StrReverse(&lt;String&gt;)
  </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>
    &lt;Member&gt; StrToMember(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>StrToSet</code></td>
  <td>Constructs a set from a string expression.
    <h1>Syntax</h1>
    &lt;Set&gt; StrToSet(&lt;String&gt;[, &lt;Dimension&gt;...])
  </td>
</tr>
<tr>
  <td valign=top><code>StrToTuple</code></td>
  <td>Constructs a tuple from a string.
    <h1>Syntax</h1>
    &lt;Tuple&gt; StrToTuple(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>String</code></td>
  <td>
    <h1>Syntax</h1>
    &lt;String&gt; String(&lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>StripCalculatedMembers</code></td>
  <td>Removes calculated members from a set.
    <h1>Syntax</h1>
    &lt;Set&gt; StripCalculatedMembers(&lt;Set&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Subset</code></td>
  <td>Returns a subset of elements from a set.
    <h1>Syntax</h1>
    &lt;Set&gt; Subset(&lt;Set&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; Subset(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; Sum(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Sum(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Tail</code></td>
  <td>Returns a subset from the end of a set.
    <h1>Syntax</h1>
    &lt;Set&gt; Tail(&lt;Set&gt;)<br/>
    &lt;Set&gt; Tail(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Tan</code></td>
  <td>Returns a Double specifying the tangent of an angle.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Tan(&lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Tanh</code></td>
  <td>Returns the hyperbolic tangent of a number.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Tanh(&lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; ThirdQ(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; ThirdQ(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Time</code></td>
  <td>Returns a Variant (Date) indicating the current system time.
    <h1>Syntax</h1>
    &lt;DateTime&gt; 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>
    &lt;DateTime&gt; TimeSerial(&lt;Integer&gt;, &lt;Integer&gt;, &lt;Integer&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>TimeValue</code></td>
  <td>Returns a Variant (Date) containing the time.
    <h1>Syntax</h1>
    &lt;DateTime&gt; TimeValue(&lt;DateTime&gt;)
  </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>
    &lt;Numeric Expression&gt; 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>
    &lt;Set&gt; ToggleDrillState(&lt;Set&gt;, &lt;Set&gt;)<br/>
    &lt;Set&gt; ToggleDrillState(&lt;Set&gt;, &lt;Set&gt;, &lt;Symbol&gt;)
  </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>
    &lt;Set&gt; TopCount(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)<br/>
    &lt;Set&gt; TopCount(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; TopPercent(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; TopSum(&lt;Set&gt;, &lt;Numeric Expression&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;String&gt; Trim(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>TupleToStr</code></td>
  <td>Constructs a string from a tuple.
    <h1>Syntax</h1>
    &lt;String&gt; TupleToStr(&lt;Tuple&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>TypeName</code></td>
  <td>Returns a String that provides information about a variable.
    <h1>Syntax</h1>
    &lt;String&gt; TypeName(&lt;Value&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>UCase</code></td>
  <td>Returns a string that has been converted to uppercase
    <h1>Syntax</h1>
    &lt;String&gt; UCase(&lt;String&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Union</code></td>
  <td>Returns the union of two sets, optionally retaining duplicates.
    <h1>Syntax</h1>
    &lt;Set&gt; Union(&lt;Set&gt;, &lt;Set&gt;)<br/>
    &lt;Set&gt; Union(&lt;Set&gt;, &lt;Set&gt;, &lt;Symbol&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>UniqueName</code></td>
  <td>Returns the unique name of a dimension.
    <h1>Syntax</h1>
    &lt;Dimension&gt;.UniqueName
  </td>
</tr>
<tr>
  <td valign=top><code>UniqueName</code></td>
  <td>Returns the unique name of a hierarchy.
    <h1>Syntax</h1>
    &lt;Hierarchy&gt;.UniqueName
  </td>
</tr>
<tr>
  <td valign=top><code>UniqueName</code></td>
  <td>Returns the unique name of a level.
    <h1>Syntax</h1>
    &lt;Level&gt;.UniqueName
  </td>
</tr>
<tr>
  <td valign=top><code>UniqueName</code></td>
  <td>Returns the unique name of a member.
    <h1>Syntax</h1>
    &lt;Member&gt;.UniqueName
  </td>
</tr>
<tr>
  <td valign=top><code>Unorder</code></td>
  <td>Removes any enforced ordering from a specified set.
    <h1>Syntax</h1>
    &lt;Set&gt; Unorder(&lt;Set&gt;)
  </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>
    &lt;Numeric Expression&gt; Val(&lt;String&gt;)
  </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>
    &lt;Numeric Expression&gt; ValidMeasure(&lt;Tuple&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Value</code></td>
  <td>Returns the value of a measure.
    <h1>Syntax</h1>
    &lt;Member&gt;.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>
    &lt;Numeric Expression&gt; Var(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Var(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Numeric Expression&gt; VarP(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; VarP(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>Variance</code></td>
  <td>Alias for Var.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; Variance(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; Variance(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>VarianceP</code></td>
  <td>Alias for VarP.
    <h1>Syntax</h1>
    &lt;Numeric Expression&gt; VarianceP(&lt;Set&gt;)<br/>
    &lt;Numeric Expression&gt; VarianceP(&lt;Set&gt;, &lt;Numeric Expression&gt;)
  </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>
    &lt;Set&gt; VisualTotals(&lt;Set&gt;)<br/>
    &lt;Set&gt; VisualTotals(&lt;Set&gt;, &lt;String&gt;)
  </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>
    &lt;Integer&gt; Weekday(&lt;DateTime&gt;, &lt;Integer&gt;)
  </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>
    &lt;Integer&gt; Weekday(&lt;DateTime&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>WeekdayName</code></td>
  <td>Returns a string indicating the specified day of the week.
    <h1>Syntax</h1>
    &lt;String&gt; WeekdayName(&lt;Integer&gt;, &lt;Logical Expression&gt;, &lt;Integer&gt;)
  </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>
    &lt;Set&gt; Wtd()<br/>
    &lt;Set&gt; Wtd(&lt;Member&gt;)
  </td>
</tr>
<tr>
  <td valign=top><code>XOR</code></td>
  <td>Returns whether two conditions are mutually exclusive.
    <h1>Syntax</h1>
    &lt;Logical Expression&gt; XOR &lt;Logical Expression&gt;
  </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>
    &lt;Integer&gt; Year(&lt;DateTime&gt;)
  </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>
    &lt;Set&gt; Ytd()<br/>
    &lt;Set&gt; Ytd(&lt;Member&gt;)
  </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 &lt;Expression&gt; When &lt;Expression&gt; Then &lt;Expression&gt; [...] [Else &lt;Expression&gt;] 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 &lt;Logical Expression&gt; Then &lt;Expression&gt; [...] [Else &lt;Expression&gt;] End
  </td>
</tr>
<tr>
  <td valign=top><code>{}</code></td>
  <td>Brace operator constructs a set.
    <h1>Syntax</h1>
    {&lt;Member&gt; [, &lt;Member&gt;...]}
  </td>
</tr>
<tr>
  <td valign=top><code>||</code></td>
  <td>Concatenates two strings.
    <h1>Syntax</h1>
    &lt;String&gt; || &lt;String&gt;
  </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>