430 Practical PowerPivot & DAX Formulas for Excel 2010
date/time functions (cont.)
TOTALYTD() function, 298–299
WEEKDAY() function, 256–257
WEEKNUM() function, 257–258
YEAR() function, 258–259
YEARFRAC() function, 259–260
DATEVALUE() function, 245–246
DAX (Data Analysis eXpressions), 108–109
DAX formulas. See also functions
adding business intelligence via,
46–50
applying, 115
calculating ages, 381
changes over time, 360, 367
considerations, 16
how to write, 114–118
measures. See measures
moving average, 367–368
parsing dates, 349–350
percentage of all, 362–363, 364
percentage of column/row,
363–364
percentage of parent, 365
real-world solutions, 347–381
relationships and, 43
running totals, 368–370
sorting on dates, 354–358
uses for, 109–114
DAX measures. See measures
DAX/PowerPivot solutions, 347–381
DAY() function, 246–247
Decimal Number data type, 91
decimals, removing from numbers,
343–344
Decrease Decimal button, 92
Delete button, 93, 168
Delete Cells option, 168
denormalization, 12, 46, 221–222, 379, 394
Design ribbon, 93–104
dimensions, 16, 75, 76, 118, 402
Display tab, 167, 169
DISTINCT() function, 209–210
division operator (/), 116
DMX (Data Mining eXtensions), 82–83,
414–415
DMX queries, 82–83, 380, 413–426
double ampersand (&&), 116, 213
double pipe symbol (||), 116, 213–214
drop-zone entry context menus, 145–148
drop-zones, 110–114, 144, 145–148
E
EARLIER() function, 210–211
EARLIEST() function, 211–212
EDATE() function, 247
Edit group, 103–104
ENDOFMONTH() function, 275
ENDOFQUARTER() function, 275–276
ENDOFYEAR() function, 276–277
EOMONTH() function, 247–248
error values, 167
errors
IFERROR() function, 215
ISERROR() function, 216–217
linked tables, 65–66
returning information about, 215
testing for error condition, 216–217
ETL (Extract, Transform, and Load)
operations, 24
EXACT() function, 304–305
Excel
creating separate time
dimension, 351
CUBE() functions, 377–379
GETPIVOTDATA() function, 376–377
importing from, 34–37
publishing to SharePoint, 380
saving to SharePoint, 380
SQL queries for, 396–397
Excel Data group, 64–66
Excel formula bar, 173
Excel pivot tables, 20, 81
Excel PowerPivot ribbon, 20, 21, 63–67
Excel Table button, 105
Excel tables
converting to PowerPivot tables,
64–65
links to, 24
vs. PowerPivot tables, 36
Excel workbooks
considerations, 21–22
described, 6, 8
Excel Data group, 64–65
Northwind database, 34–35
SQL queries and, 397
Excel worksheets, 4, 5, 20, 63, 89, 396
Existing Connections button, 96–97
EXP() function, 322
explicit measures, 51–52
exponentiation operator (^), 116
exponents, 322
Extract, Transform, and Load (ETL)
operations, 24
F
FACT() function, 322–323
factorial, 322–323
facts, 16, 51. See also measures
FALSE() function, 212–213
FALSE logical operator, 116
false/true conditions
AND() function, 205
changing to/from, 220–221
FALSE() function, 212–213
IF() function, 214
ISBLANK() function, 215–216
ISERROR() function, 216–217
ISLOGICAL() function, 217–218
ISNONTEXT() function, 218
ISTEXT() function, 219–220
NOT() function, 220–221
OR() function, 221
TRUE() function, 223–224
Field Buttons button, 187
Field Headers button, 167, 169, 174
Field List button, 66, 141, 169, 187
field lists. See PowerPivot Field List
Fields, Items, & Sets button, 168
files
backup, 381
connection, 96
flat, 85, 86
text, 24, 85–87, 89, 96
filter context, 112
FILTER() function, 213–214
filter functions, 192–204
ALL() function, 192–201
ALLEXCEPT() function, 201–203
ALLNOBLANKROW() function,
203–204
CALCULATE() function, 112,
123–134, 206–207
CALCULATETABLE() function, 208
DISTINCT() function, 209–210
EARLIER() function, 210–211
EARLIEST() function, 211–212
FILTER() function, 213–214
RELATED() function, 97, 118–123,
221–222