rbi-learning / Today-I-Learned

1 stars 0 forks source link

10/14 Day #2 Excel: Pivot Tables #179

Open ajlee12 opened 3 years ago

ajlee12 commented 3 years ago

Morning Exercise

Exercise Review

=IFERROR(AVERAGEIFS(Restaurants[stars], Restaurants[name], AverageRatings[[#headers],[BurgerKing]], Restaurants[dates], [@Territory]), "")

=SUMIFS(Restaurants[review_count], Restaurants[name], ReviewCount[[#Headers],[Tim Hortons]], Restaurants[state], [@Territory])

Count the stores in each territory for each brand:

=COUNTIFS(Restaurants[name], StoreCount[[#Headers], [Burger King]], Restaurants[state], [@Territory])

Homework Review

Structured References

These are special item specifiers that refer to specific portions of the table: #All, #Data, #Headers, #Totals

Notes:

Conditional Formatting - Data Bars

Calculate Means

=AVERAGE(RawDataTable[Rating(1-5)])

Goal Seeking

Data tab => What-If Analysis => Goal Seek

Pivot Table

What is a Pivot Table?

In general, Pivot Tables are suitable if you have lots of similar data points.

How to quickly create a Pivot Table from an existing table

How to create a PivotTable with external data source (e.g. a CSV file)

How do we match a business ID to a brand name?

===========

Discussion on INDEX vs LOOKUP

Can someone explain the difference between using INDEX() here vs. VLOOKUP()?

You can use both! Index and match is preferred sometimes because it is faster and you can add columns without having to change the lookupvalue position (if you add columns, with a VLOOKUP you will have to change the number of the column you are looking in and the column you want to return) INDEX(MATCH) isfaster in terms of processing, not necessarily because it is easier

Also, I think something to keep in mind is that VLOOKUP can only "look" and return a value that's to the left of the lookup value + the data has to be arranged vertically, but with INDEX & MATCH, you can use it on data that's structured both horizontally & vertically

(Andy W.) Good discussions here: https://www.google.com/amp/s/www.powerusersoftwares.com/amp/xlookup-just-killed-vlookup-everything-to-know-about-this-major-new-excel-function

===========

Pivot Chart

What is it?

A pivot chart is the visual representation of a pivot table in Excel. Pivot charts and pivot tables are connected with each other.

How to remove labels

(Lazaro Q.) On the Layout tab, in the Labels group, click Data Labels, and then click None. Click a data label one time to select all data labels in a data series or two times to select just one data label that you want to delete, and then press DELETE. Right-click a data label, and then click Delete.