Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Analyzing Data with Power BI and Power Pivot for Excel (Alberto Ferrari, Marco Russo) (z-lib.org).pdf
Скачиваний:
11
Добавлен:
14.08.2022
Размер:
18.87 Mб
Скачать

Index

A

ABC analysis (segmentation), 196200 active events (duration), 137146 additive measures

aggregating snapshots, 114117 fact tables, 51

overview, 225 aggregating

detail tables, 2430 duration, 129131 header tables, 2430 snapshots, 112117

additive measures, 114117 semi-additive measures, 114117

ALL function, 40

allocation factor (granularity), 185186 ambiguity (relationships), 1719, 4345 automatic time dimensions

creating, 5860 Excel, 5859

Power BI Desktop, 60

B

bidirectional filtering (cross-filtering)

CROSSFILTER function, 43, 52, 98, 156157, 159160, 168, 220 detail tables, 2529

fact tables, 4043 granularity, 179181 header tables, 2529

many-to-many relationships, 155157 overview, 218221

BLANK function, 182

bridge tables defined, 222

many-to-many relationships, 167170 orders and invoices example, 5253 overview, 224

budgets (granularity), 175177

C

CALCULATE function, 37, 43, 77, 124, 156, 181, 193, 220 calculated columns (segmentation), 196200 CALCULATETABLE function, 81, 124

calculating

CALCULATE function, 37, 43, 77, 124, 156, 181, 193, 220 calculated columns (segmentation), 196200 CALCULATETABLE function, 81, 124

time intelligence, 6869 calendars

fiscal calendars, 6971 weekly calendars, 8489

cascading many-to-many relationships, 158161 CLOSINGBALANCELASTQUARTER function, 226 columns

foreign keys, defined, 9 names, 2021

primary keys, defined, 89 segmentation

calculated columns, 196200 multiple-column relationships, 189192

CONTAINS function, 178 converting currency

multiple reporting currencies multiple source currencies, 212214 single source currency, 208212

multiple source currencies

multiple reporting currencies, 212214

single reporting currency, 204208 overview, 203204

single source currency, multiple reporting currencies, 208212 single reporting currency, multiple source currencies, 204208

COUNTROWS function, 75, 97, 220 creating

automatic time dimensions, 5860 date dimensions, 5558

CROSSFILTER function, 43, 52, 98, 156157, 159160, 168, 220 cross-filtering (bidirectional filtering)

CROSSFILTER function, 43, 52, 98, 156157, 159160, 168, 220 detail tables, 2529

fact tables, 4043 granularity, 179181 header tables, 2529

many-to-many relationships, 155157 overview, 218221

currency conversion

multiple reporting currencies multiple source currencies, 212214 single source currency, 208212

multiple source currencies

multiple reporting currencies, 212214 single reporting currency, 204208

overview, 203204

single source currency, multiple reporting currencies, 208212 single reporting currency, multiple source currencies, 204208

D

data

models. See data models temporal data. See duration types. See data types

data models

denormalization, 1315, 1819

detail tables aggregating, 2430

bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

flattening, 3032 foreign keys, 9

granularity. See granularity header tables

aggregating, 2430 bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

many-to-many relationships. See many-to-many relationships normalization, 1215, 1819

OLTP, 1315 one-to-many relationships

defined, 9

fact tables, 4749 primary keys, 89

relationships. See relationships segmentation

ABC analysis, 196200 calculated columns, 196200 dynamic, 194196

multiple-column relationships, 189192 overview, 189

static, 192193 single tables, 27

snowflake schemas, overview, 1819, 222223 source tables, 9

star schemas, overview, 1519, 222 tables. See tables

targets, 9

data types overview, 217 date. See also time

calendars

fiscal calendars, 6971 weekly calendars, 8489

CLOSINGBALANCELASTQUARTER function, 226 date dimensions

creating, 5558 multiple, 6166

using with time dimensions, 6668 DATESINPERIOD function, 69 DATESYTD function, 68, 7071, 226 duration

active events, 137146 aggregating, 129131 formula engine, 141 mixing durations, 146150 multiple dates, 131135 overview, 127129

temporal many-to-many relationships, 161167 time shifting, 135136

LASTDATE function, 114115, 141, 226 LASTDAY function, 68

periods

DATESINPERIOD function, 69 non-overlapping, 7980 overlapping, 8284

overview, 78

PARALLELPERIOD function, 68 relative to today, 8082

SAMEPERIODLASTYEAR function, 68, 87 SAMEPERIODLASTYEAR function, 68, 87 separating from time, 67, 131

TOTALYTD function, 226 working days

multiple countries, 7477 overview, 72

single countries, 7274 date dimensions

creating, 5558 multiple, 6166

using with time dimensions, 6668 DATESINPERIOD function, 69 DATESYTD function, 68, 7071, 226 denormalization. See also normalization

data models, 1315, 1819 fact tables, 3540 flattening, 3032

derived snapshots defined, 112 overview, 118119

detail tables aggregating, 2430

bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

diagram (relationship diagram), 18 dimensions

ambiguity, 1719, 4345

automatic time dimensions creating, 5860

Excel, 5859

Power BI Desktop, 60 date dimensions

creating, 5558 multiple, 6166

using with time dimensions, 6668 defined, 15, 222

detail tables, 2324 fact tables

bidirectional filtering, 4043 multiple dimensions, 3540

header tables, 2324 names, 2021

rapidly changing dimensions, 106109 relationships, 1719

SCDs (slowly changing dimensions) dimensions, 102104

fact tables, 104106 granularity, 102106 loading, 99106 overview, 9195

rapidly changing dimensions, 106109 techniques, 109110

types, 92 using, 9699 versions, 9699

time dimensions, 6668 displaying

Power Pivot (Ribbon), 10 relationship diagram, 18 values (granularity), 181185

DISTINCT function, 40 DISTINCTCOUNT function, 9697

duration

active events, 137146 aggregating, 129131 formula engine, 141 mixing durations, 146150 multiple dates, 131135 overview, 127129

temporal many-to-many relationships, 161167 materializing, 166167

reallocation factors, 164166 time shifting, 135136

dynamic segmentation, 194196

E

events (active events), 137146 examples (orders and invoices) additive measures, 51

bridge tables, 5253 detail tables, 4950 fact tables, 4553 header tables, 4950

many-to-many relationships, 47, 52 one-to-many relationships, 4749

Excel

automatic time dimensions, 5859

Power BI Desktop, automatic time dimensions, 60 Power Pivot, viewing, 10

EXCEPT function, 7778

F

fact tables

ambiguity, 1719, 4345 defined, 15, 221 denormalization, 3540 detail tables

aggregating, 2430 bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

dimensions

bidirectional filtering, 4043 detail tables, 2324

header tables, 2324 multiple dimensions, 3540

header tables aggregating, 2430

bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

names, 2021

orders and invoices example, 4553 additive measures, 51

bridge tables, 5253 detail tables, 4950 header tables, 4950

many-to-many relationships, 47, 52 one-to-many relationships, 4749

overview, 35 relationships, 1719

SCDs (granularity), 104106 FILTER function, 148, 181, 193, 226 filtering

bidirectional filtering (cross-filtering)

CROSSFILTER function, 43, 52, 98, 156157, 159160, 168, 220 detail tables, 2529

fact tables, 4043 granularity, 179181 header tables, 2529

many-to-many relationships, 155157 overview, 218221

FILTER function, 148, 181, 193, 226 moving filters (granularity), 177179 overview, 218221

fiscal calendars, 6971 flattening, 3032 foreign keys, defined, 9

formula engine (duration), 141 functions

ALL, 40 BLANK, 182

CALCULATE, 37, 43, 77, 124, 156, 181, 193, 220 CALCULATETABLE, 81, 124 CLOSINGBALANCELASTQUARTER, 226 CONTAINS, 178

COUNTROWS, 75, 97, 220

CROSSFILTER, 43, 52, 98, 156157, 159160, 168, 220 DATESINPERIOD, 69

DATESYTD, 68, 7071, 226 DISTINCT, 40 DISTINCTCOUNT, 9697 EXCEPT, 7778

FILTER, 148, 181, 193, 226

HASONEVALUE, 77, 205 IF, 76

IFERROR, 193

INTERSECT, 3738, 124, 178179 ISEMPTY, 193

LASTDATE, 114115, 141, 226 LASTDAY, 68

List.Numbers, 100 LOOKUPVALUE, 81, 86, 190191 MAX, 101, 103, 195

MIN, 195 PARALLELPERIOD, 68 RELATED, 43, 61, 74 RELATEDTABLE, 61, 74

SAMEPERIODLASTYEAR, 68, 87 SUM, 114, 134135, 144, 155156 SUMMARIZE, 165

SUMX, 158 TOTALYTD, 226 TREATAS, 179 UNION, 40

USERELATIONSHIP, 44, 61 VALUES, 193

G

granularity

bidirectional filtering, 179181 budgets, 175177

data models

multiple tables, 1115 single tables, 47

detail tables, 2729 header tables, 2729 moving filters, 177179 overview, 173175 SCDs

dimensions, 102104 fact tables, 104106

snapshots, 117 values

allocation factor, 185186 hiding, 181185

H

HASONEVALUE function, 77, 205 header tables

aggregating, 2430 bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

hiding/viewing

Power Pivot (Ribbon), 10 relationship diagram, 18 values (granularity), 181185

hierarchies (tables), 2324

I

IF function, 76 IFERROR function, 193

INTERSECT function, 3738, 124, 178179 intervals. See duration

invoices and orders example additive measures, 51 bridge tables, 5253 detail tables, 4950 fact tables, 4553 header tables, 4950

many-to-many relationships, 47, 52 one-to-many relationships, 4749

ISEMPTY function, 193

K–L

keys, 89

LASTDATE function, 114115, 141, 226 LASTDAY function, 68

List.Numbers function, 100 loading SCDs, 99106

LOOKUPVALUE function, 81, 86, 190191

M

many-to-many relationships bidirectional filtering, 155157 bridge tables, 167170 cascading, 158161

fact tables, 47, 52

non-additive measures, 157158 overview, 153158 performance, 168170

temporal many-to-many relationships, 161167 materializing, 166167

reallocation factors, 164166 many-to-one relationships

defined, 9

fact tables, 4749

materializing (many-to-many relationships), 166167 matrixes (transition matrixes)

slicers, 123124 snapshots, 119125

MAX function, 101, 103, 195 measures

additive, 114117, 225 aggregating snapshots, 114117

many-to-many relationships, 157158 non-additive, 157158, 225 semi-additive, 114117, 225226

MIN function, 195

mixing durations, 146150 models. See data models

moving filters (granularity), 177179 multiple columns (segmentation), 189192 multiple countries (working days), 7477 multiple date dimensions, 6166

multiple dates (duration), 131135 multiple dimensions (fact tables), 3540 multiple durations, mixing, 146150 multiple reporting currencies

multiple source currencies, 212214 single source currency, 208212

multiple source currencies

multiple reporting currencies, 212214 single reporting currency, 204208

multiple tables (granularity), 1115

N

names

columns, 2021 dimensions, 2021 fact tables, 2021 objects, 2021 tables, 2021

natural snapshots, 112 non-additive measures

many-to-many relationships, 157158 overview, 225

non-overlapping periods, 7980 normalization

data models, 1215, 1819 denormalization

data models, 1315, 1819 fact tables, 3540

flattening, 3032

O

object names, 2021

OLTP (online transactional processing), 1315 one-to-many relationships

defined, 9

fact tables, 4749

online transactional processing (OLTP), 1315 orders and invoices example

additive measures, 51 bridge tables, 5253 detail tables, 4950 fact tables, 4553 header tables, 4950

many-to-many relationships, 47, 52 one-to-many relationships, 4749

overlapping periods, 8284

P

PARALLELPERIOD function, 68

performance (many-to-many relationships), 168170 periods

dates

non-overlapping, 7980 overlapping, 8284 overview, 78

relative to today, 8082 DATESINPERIOD function, 69 PARALLELPERIOD function, 68 SAMEPERIODLASTYEAR function, 68, 87

Power BI Desktop, automatic time dimensions, 60 Power Pivot, viewing, 10

primary keys, defined, 89

R

rapidly changing dimensions, 106109

reallocation factors (many-to-many relationships), 164166 RELATED function, 43, 61, 74

RELATEDTABLE function, 61, 74 relationship diagram, 18 relationships

ambiguity, 1719, 4345 data models, 715

denormalization, 1315, 1819 dimensions, 1719

fact tables, 1719 foreign keys, 9 granularity

allocation factor, 185186 bidirectional filtering, 179181 budgets, 175177

hiding values, 181185 moving filters, 177179 multiple tables, 1115

many-to-many relationships. See many-to-many relationships normalization, 1215, 1819

OLTP, 1315 one-to-many relationships

defined, 9

fact tables, 4749 overview, 217218 primary keys, 89 relationship diagram, 18

segmentation, multiple columns, 189192 source tables, 9

tables, 715 targets, 9

reporting currencies

multiple reporting currencies multiple source currencies, 212214 single source currency, 208212

single reporting currency, multiple source currencies, 204208 Ribbon, viewing Power Pivot, 10

S

SAMEPERIODLASTYEAR function, 68, 87 SCDs (slowly changing dimensions)

granularity dimensions, 102104 fact tables, 104106

loading, 99106 overview, 9195

rapidly changing dimensions, 106109 techniques, 109110

types, 92 using, 9699 versions, 9699

schemas

snowflake schemas, overview, 1819, 222223 star schemas, overview, 1519, 222

segmentation

ABC analysis, 196200 calculated columns, 196200 dynamic, 194196

multiple-column relationships, 189192 overview, 189

static, 192193 semi-additive measures

aggregating snapshots, 114117 overview, 225226

shifting (time shifting), 135136 showing

Power Pivot (Ribbon), 10

relationship diagram, 18 values (granularity), 181185

single countries (working days), 7274

single reporting currency, multiple source currencies, 204208 single source currency, multiple reporting currencies, 208212 single tables (data models), 27

size. See granularity

slicers (transition matrixes), 123124 slowly changing dimensions (SCDs)

granularity dimensions, 102104 fact tables, 104106

loading, 99106 overview, 9195

rapidly changing dimensions, 106109 techniques, 109110

types, 92 using, 9699 versions, 9699

snapshots

additive measures, 114117 aggregating, 112117 derived, 112, 118119 granularity, 117

natural, 112 overview, 111112

semi-additive measures, 114117 slicers, 123124

transition matrixes, 119125 types, 112

snowflake schemas, overview, 1819, 222223 source currencies

multiple source currencies

multiple reporting currencies, 212214 single reporting currency, 204208

single source currency, multiple reporting currencies, 208212 source tables, defined, 9

star schemas, overview, 1519, 222 static segmentation, 192193

SUM function, 114, 134135, 144, 155156 SUMMARIZE function, 165

SUMX function, 158

T

tables

bridge tables defined, 222

many-to-many relationships, 167170 orders and invoices example, 5253 overview, 224

CALCULATETABLE function, 81, 124 columns

calculated columns, 196200 foreign keys, defined, 9

multiple-column relationships, 189192 names, 2021

tables (continued)

primary keys, defined, 89 segmentation, 189192, 196200

denormalization, 1315, 1819 detail tables

aggregating, 2430 bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

dimensions. See dimensions

fact tables. See fact tables foreign keys, 9 granularity. See granularity header tables

aggregating, 2430 bidirectional filtering, 2529 dimensions, 2324 flattening, 3032 granularity, 2729 hierarchies, 2324

orders and invoices example, 4950 overview, 2324

many-to-many relationships. See many-to-many relationships names, 2021

normalization, 1215, 1819 OLTP, 1315

one-to-many relationships defined, 9

fact tables, 4749 overview, 215216 primary keys, 89

RELATEDTABLE function, 61, 74 relationships. See relationships single tables, 27

snapshots

additive measures, 114117 aggregating, 112117 derived, 112, 118119 granularity, 117

natural, 112 overview, 111112

semi-additive measures, 114117 slicers, 123124

transition matrixes, 119125 types, 112

source tables, 9 targets, 9 transition matrixes

slicers, 123124 snapshots, 119125

targets, defined, 9 techniques (SCDs), 109110 temporal data. See duration

temporal many-to-many relationships, 161167 materializing, 166167

reallocation factors, 164166 time. See also date

duration

active events, 137146 aggregating, 129131 formula engine, 141 mixing durations, 146150 multiple dates, 131135 overview, 127129

temporal many-to-many relationships, 161167 time shifting, 135136

separating from date, 67, 131 time dimensions

automatic time dimensions, 5860 using with date dimensions, 6668 time intelligence. See time intelligence

time dimensions

automatic time dimensions creating, 5860

Excel, 5859

Power BI Desktop, 60

using with date dimensions, 6668 time intelligence

calculating, 6869 calendars

fiscal calendars, 6971 weekly calendars, 8489

date dimensions creating, 5558 multiple, 6166

using with time dimensions, 6668 periods

non-overlapping, 7980 overlapping, 8284 overview, 78

relative to today, 8082 time dimensions

automatic time dimensions, 5860 using with date dimensions, 6668

working days

multiple countries, 7477 overview, 72

single countries, 7274 time shifting (duration), 135136 today (periods relative to), 8082 TOTALYTD function, 226 transition matrixes

slicers, 123124 snapshots, 119125

TREATAS function, 179 types

SCDs, 92 snapshots, 112

U

UNION function, 40 USERELATIONSHIP function, 44, 61 using SCDs, 9699

V

values granularity

allocation factor, 185186 hiding, 181185

HASONEVALUE function, 77, 205 LOOKUPVALUE function, 81, 86, 190191 VALUES function, 193

VALUES function, 193 versions (SCDs), 9699 viewing

Power Pivot (Ribbon), 10 relationship diagram, 18 values (granularity), 181185

W

weekly calendars, 8489 working days

multiple countries, 7477 overview, 72

single countries, 7274 working shifts. See duration