Вы находитесь на странице: 1из 14

© 2011 Microsoft Corporation. All rights reserved.

Microsoft SQL Server PowerPivot for Excel 2010 workbook samples are provided for informational purposes only as an aid to illustrate a concept. These
example companies, organizations, products, domain names, e-mail addresses, people, places, and events depicted herein are fictitious, and no associa
mail address, person, place, or event is intended or should be inferred.

Sample DAX Formulas powered by PowerPivot


Note: This workbook is a companion to the Data Analysis Expressions (DAX) In the Tabular BI Semantic Model whitepaper th

Sales Column Labels


This shape represents a Row Labels 2007 2008
slicer. Slicers can be used Armenia $ 10,697,642.89 $ 12,802,000.68
in at least Excel 2010.
Australia $ 31,698,751.16 $ 39,734,710.75
If the shape was modified Bhutan $ 11,011,949.91 $ 12,899,605.66
in an earlier version of Canada $ 108,076,080.27 $ 79,570,342.19
Excel, or if the workbook China $ 462,428,507.84 $ 581,050,628.40
was saved in Excel 2003 or Denmark $ 10,711,449.83 $ 5,693,881.55
earlier, the slicer cannot be
used. France $ 248,801,472.44 $ 218,612,439.39
Germany $ 354,436,723.97 $ 337,419,209.63
Greece $ 10,662,152.52 $ 5,744,113.96
India $ 31,834,758.18 $ 39,621,943.29
Iran $ 21,314,190.11 $ 26,804,288.38
Ireland $ 10,570,530.05 $ 5,916,233.23
Italy $ 34,719,790.81 $ 23,229,095.53
Japan $ 56,801,779.57 $ 82,804,472.58
Kyrgyzstan $ 10,913,951.79 $ 12,880,870.84
Malta $ 10,572,691.21 $ 5,781,747.66
Pakistan $ 11,992,037.52 $ 26,044,576.10
Poland $ 10,733,699.68 $ 6,023,341.08
Portugal $ 10,629,143.02 $ 5,911,127.59
Romania $ 10,900,048.39 $ 5,827,158.89
Russia $ 42,189,724.14 $ 31,289,351.16
Singapore $ 10,262,476.73 $ 12,832,977.51
Slovenia $ 10,552,250.44 $ 5,702,422.82
South Korea $ 11,322,555.08 $ 16,008,692.46
Spain $ 10,775,770.69 $ 5,713,579.13
Sweden $ 10,511,963.13 $ 5,688,176.23
Switzerland $ 10,515,133.82 $ 5,496,527.34
Syria $ 14,010,740.05 $ 26,405,490.76
Taiwan $ 10,582,040.28 $ 13,364,330.92
Thailand $ 11,138,010.00 $ 15,767,761.44
the Netherlands $ 10,700,622.10 $ 5,916,178.50
Turkmenistan $ 20,877,985.35 $ 25,693,638.02
United Kingdom $ 151,571,280.23 $ 89,253,182.30
United States $ 2,767,423,051.84 $ 2,317,729,438.70
Grand Total $ 4,561,940,955.02 $ 4,111,233,534.68
oses only as an aid to illustrate a concept. These samples are provided “as is” without warranty of any kind. The
nts depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-

bular BI Semantic Model whitepaper that was downloaded with the PowerPivot Samples package.

2009 Grand Total


$ 13,768,349.90 $ 37,267,993.47
$ 41,128,813.37 $ 112,562,275.29
$ 19,962,257.73 $ 43,873,813.31
$ 63,002,636.49 $ 250,649,058.95
$ 617,126,191.03 $ 1,660,605,327.27
$ 5,130,625.49 $ 21,535,956.86
$ 191,508,610.33 $ 658,922,522.17
$ 325,462,497.82 $ 1,017,318,431.42
$ 5,049,809.47 $ 21,456,075.94
$ 40,462,377.31 $ 111,919,078.79
$ 27,098,480.82 $ 75,216,959.32
$ 4,962,315.77 $ 21,449,079.05
$ 20,541,708.18 $ 78,490,594.52
$ 96,818,245.96 $ 236,424,498.11
$ 13,804,578.11 $ 37,599,400.74
$ 4,921,696.16 $ 21,276,135.02
$ 26,279,344.58 $ 64,315,958.20
$ 4,693,341.12 $ 21,450,381.88
$ 4,910,978.97 $ 21,451,249.58
$ 4,950,364.81 $ 21,677,572.09
$ 27,870,158.03 $ 101,349,233.33
$ 13,167,637.07 $ 36,263,091.30
$ 4,862,182.32 $ 21,116,855.58
$ 25,809,600.08 $ 53,140,847.62
$ 4,896,696.91 $ 21,386,046.72
$ 4,817,243.12 $ 21,017,382.48
$ 4,785,769.58 $ 20,797,430.75
$ 26,299,843.29 $ 66,716,074.09
$ 13,663,685.18 $ 37,610,056.38
$ 25,970,356.17 $ 52,876,127.61
$ 4,781,201.86 $ 21,398,002.46
$ 27,240,861.29 $ 73,812,484.67
$ 73,230,693.92 $ 314,055,156.45
$ 1,951,503,966.95 $ 7,036,656,457.48
$ 3,740,483,119.18 $ 12,413,657,608.89
FullDateLabel 2008-11-06

PeriodSales Column Labels


Row Labels Current MTD QTD YTD
Armenia $ 22,719.10 $ 248,331.06 $ 1,156,455.96 $ 10,630,629.07
Australia $ 128,067.97 $ 754,890.40 $ 3,833,540.60 $ 32,614,830.37
Bhutan $ 80,767.38 $ 309,988.64 $ 1,365,832.64 $ 10,726,623.28
Canada $ 258,507.69 $ 1,518,548.05 $ 7,951,773.75 $ 65,464,780.74
China $ 1,960,269.12 $ 11,435,001.27 $ 58,193,897.11 $ 474,725,832.07
Denmark $ 24,058.13 $ 86,489.48 $ 556,264.15 $ 4,966,219.04
France $ 534,727.83 $ 3,142,548.57 $ 19,126,666.40 $ 190,614,718.24
Germany $ 790,463.32 $ 5,349,917.19 $ 29,894,862.89 $ 294,086,578.90
Greece $ 14,825.29 $ 98,766.16 $ 508,777.15 $ 5,009,611.56
India $ 145,142.92 $ 947,900.05 $ 4,134,043.95 $ 32,675,490.10
Iran $ 113,727.40 $ 549,733.95 $ 2,745,800.45 $ 22,242,772.41
Ireland $ 9,604.36 $ 68,044.98 $ 471,300.18 $ 5,128,496.88
Italy $ 57,269.06 $ 312,316.79 $ 2,003,178.81 $ 20,345,019.58
Japan $ 335,623.95 $ 1,612,262.11 $ 9,101,248.61 $ 66,678,167.55
Kyrgyzstan $ 29,197.23 $ 241,120.89 $ 1,182,001.79 $ 10,540,608.84
Malta $ 10,835.82 $ 101,050.11 $ 484,124.23 $ 4,958,191.86
Pakistan $ 60,632.03 $ 483,878.94 $ 2,488,641.64 $ 21,331,930.64
Poland $ 11,458.66 $ 74,436.33 $ 506,250.72 $ 5,285,672.22
Portugal $ 14,334.08 $ 82,543.34 $ 484,634.14 $ 5,063,307.38
Romania $ 17,723.25 $ 66,079.14 $ 525,918.46 $ 5,127,880.37
Russia $ 86,186.33 $ 465,536.59 $ 2,835,177.26 $ 26,452,867.91
Singapore $ 37,230.23 $ 239,294.80 $ 1,366,388.10 $ 10,600,256.67
Slovenia $ 6,053.14 $ 67,655.22 $ 515,804.59 $ 4,943,752.51
South Korea $ 115,497.14 $ 586,588.21 $ 2,195,931.81 $ 11,464,066.25
Spain $ 7,424.22 $ 62,314.85 $ 542,951.52 $ 4,983,481.58
Sweden $ 10,825.89 $ 100,257.62 $ 552,792.58 $ 4,991,126.90
Switzerland $ 15,828.90 $ 76,134.19 $ 539,348.95 $ 4,820,451.51
Syria $ 99,356.58 $ 561,511.99 $ 2,782,439.19 $ 21,743,896.71
Taiwan $ 65,239.47 $ 265,102.72 $ 1,197,816.42 $ 10,944,628.77
Thailand $ 71,387.79 $ 303,438.03 $ 1,352,993.23 $ 10,998,795.22
the Netherlands $ 20,163.02 $ 88,269.88 $ 496,320.59 $ 5,067,609.65
Turkmenistan $ 70,843.13 $ 506,092.99 $ 2,721,339.79 $ 21,092,718.97
United Kingdom $ 182,761.57 $ 1,349,656.65 $ 7,843,482.31 $ 77,462,877.88
United States $ 7,243,699.83 $ 45,180,219.48 $ 231,934,288.58 $ 1,902,935,677.29
Grand Total $ 12,652,451.83 $ 77,335,920.68 $ 403,592,288.54 $ 3,406,719,568.90
LastYear PriorYearMTD PriorYearQTD PriorYearYTD
$ 25,146.17 $ 212,654.18 $ 1,121,173.78 $ 8,550,719.20
$ 123,828.90 $ 594,496.00 $ 3,275,077.35 $ 25,641,432.83
$ 35,580.58 $ 256,654.47 $ 1,146,825.22 $ 8,910,980.70
$ 320,440.61 $ 2,385,069.46 $ 13,909,862.76 $ 89,530,353.64
$ 1,703,305.66 $ 9,553,621.67 $ 48,655,852.65 $ 373,746,351.61
$ 24,324.00 $ 186,647.84 $ 1,049,505.03 $ 9,245,930.91
$ 733,368.11 $ 3,902,324.75 $ 22,325,363.57 $ 215,894,185.56
$ 900,478.83 $ 5,417,617.79 $ 31,627,285.00 $ 306,232,736.44
$ 26,053.33 $ 154,956.80 $ 1,007,976.85 $ 9,167,992.96
$ 127,248.77 $ 663,696.66 $ 3,320,461.21 $ 25,610,163.15
$ 68,747.42 $ 498,713.35 $ 2,402,221.90 $ 17,019,930.98
$ 11,441.97 $ 151,739.44 $ 894,576.89 $ 9,032,204.45
$ 137,949.27 $ 766,162.56 $ 3,858,977.37 $ 28,850,595.54
$ 278,955.15 $ 1,450,069.13 $ 6,901,243.88 $ 44,252,537.63
$ 17,515.32 $ 178,447.79 $ 1,165,162.69 $ 8,886,335.52
$ 54,636.13 $ 168,741.14 $ 915,389.38 $ 9,080,700.62
$ 18,969.33 $ 295,523.67 $ 1,204,215.77 $ 9,024,564.11
$ 21,541.89 $ 152,947.60 $ 915,702.28 $ 9,318,818.05
$ 17,234.25 $ 145,822.80 $ 895,555.26 $ 9,113,288.82
$ 37,849.58 $ 174,908.23 $ 972,815.37 $ 9,379,389.97
$ 122,695.54 $ 725,110.33 $ 3,828,846.62 $ 35,783,524.44
$ 29,687.13 $ 184,459.04 $ 916,084.49 $ 8,131,284.97
$ 21,943.83 $ 112,196.11 $ 782,683.54 $ 9,017,071.67
$ 31,023.92 $ 191,365.85 $ 1,168,477.75 $ 9,134,537.56
$ 30,555.00 $ 202,156.65 $ 958,462.82 $ 9,328,694.78
$ 17,040.83 $ 119,316.89 $ 928,962.03 $ 9,100,484.90
$ 10,781.70 $ 119,826.58 $ 929,864.82 $ 9,050,453.04
$ 110,583.41 $ 533,118.67 $ 2,260,607.07 $ 10,154,605.48
$ 23,070.76 $ 181,632.04 $ 1,090,788.49 $ 8,575,057.95
$ 26,696.84 $ 210,804.81 $ 1,236,681.21 $ 9,157,251.17
$ 41,799.60 $ 194,285.27 $ 1,109,073.78 $ 9,244,028.64
$ 73,733.64 $ 432,548.65 $ 2,223,602.60 $ 16,572,968.80
$ 404,162.04 $ 2,379,801.38 $ 13,976,171.47 $ 130,067,237.52
$ 9,912,907.11 $ 59,461,792.22 $ 336,596,919.75 $ 2,274,883,019.43
$ 15,541,296.62 $ 92,359,229.81 $ 515,572,470.66 $ 3,774,689,433.03
RegionCountryName Canada
CityName Vancouver
ProductKey (Multiple Items)

IncorrectQty Column Labels


Row Labels 2007 2008 2009 Grand Total
Contoso Vancouver No.1 Store 15 32 13 24
Contoso 2G MP3 Player E200 Blue 7 11 11
Contoso 4G MP3 Player E400 Silver 8 21 13 13
Contoso Vancouver No.2 Store 5 15 16 16
Contoso 2G MP3 Player E200 Blue 5 15 16 16
Grand Total 20 47 29 40
RegionCountryName Canada
CityName Vancouver
ProductKey (Multiple Items)

InventoryQty Column Labels


Row Labels 2007 2008 2009 2010 2011 Grand Total
Contoso Vancouver No.1 Store 15 32 24 24 24 24
Contoso 2G MP3 Player E200 Blue 7 11 11 11 11 11
Contoso 4G MP3 Player E400 Silver 8 21 13 13 13 13
Contoso Vancouver No.2 Store 5 15 16 16 16 16
Contoso 2G MP3 Player E200 Blue 5 15 16 16 16 16
Grand Total 20 47 40 40 40 40
Row Labels Sales ColorRank
Azure $51,328,936.53 13
Black $2,721,015,591.94 1
Blue $1,077,572,553.46 5
Brown $580,192,494.76 6
Gold $214,798,389.83 11
Green $545,364,759.33 7
Grey $1,243,103,636.21 4
Orange $374,884,081.18 9
Pink $274,631,376.67 10
Purple $4,245,247.46 15
Red $478,436,368.89 8
Silver $2,152,354,742.10 3
Silver Grey $121,228,292.98 12
Transparent $1,173,767.25 16
White $2,533,782,878.17 2
Yellow $39,544,492.14 14
Grand Total $12,413,657,608.89 1
Row Labels Sales Top3ProductSales Bottom3ProductSales
High $6,734,689,763.77 $106,075,463.69 $131,925.19
Low $2,579,528,111.57 $86,256,616.55 $533,626.60
Mid $3,099,439,733.55 $152,651,739.87 $46,696.90
Grand Total $12,413,657,608.89 $152,651,739.87 $30,607.21
Row Labels Sales Sales_ALL SalesRatio_ALL
This shape represents a
slicer. Slicers can be High $1,246,004,902.20 $12,413,657,608.89 10.04 %
used in at least Excel Low $656,379,560.65 $12,413,657,608.89 5.29 %
2010. Mid $1,201,237,128.45 $12,413,657,608.89 9.68 %
Grand Total $3,103,621,591.29 $12,413,657,608.89 25.00 %
If the shape was
modified in an earlier
version of Excel, or if
the workbook was
saved in Excel 2003 or
earlier, the slicer cannot
be used.
Sales_ALLSELECTED SalesRatio_ALLSELECTED
$3,103,621,591.29 40.15 %
$3,103,621,591.29 21.15 %
$3,103,621,591.29 38.70 %
$3,103,621,591.29 100.00 %
Row Labels Vacation Hours
Pieter Uittenbogaard 14,041
(Pieter Uittenbogaard data) 80
Humberto Acevedo 2,569
Kim Abercrombie 3,218
Kirk Nason 4,611
Luka Abrus 1,874
Sagiv Hadaya 1,689
Grand Total 14,041

Вам также может понравиться