















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!
















Excel is not a database or data source storage. A Table, in reality is calles rainbow of cells = collection of a column, one close to other. Each column has to
The weighted average price which we need -> amount spent /quantity of bough Weakness of this technique -> we select all the rows, there may be pollution of the table To select only the cells of the table -> CTRL + SHIFT + FRECCIA GIU ( dalla prima riga) OPERATIONS
We know that there are no plant that produce series P Put again the series under the production function -> P1 is removed ( that’s an autyomatioon of excel = to remove the empty row ( all the row has to be empty) What happens if data change? Normally we do not What to see -> the source?
We put the main filter we want in this section -> and select. GRAND TOTAL -> NO FILTYER OF COLUMS AND ROWS BUT OF THE FILTER AREA yes
Then analyse -< pivot charge
COUNT = count od cells in row that are not empty Usually we do not put numbers in the listing -< but ggregate them in the values
How to do the weighted average? we need 2 columns at least to do it a. When we do it outside we have to adjust all the time b. In the table A calcolate field is … to generate it we have to be in the pivot ( aany cells in the calculation is ok, no where is a list) Then click in insert In the home -> calculate field B. name it c. change the formula -> select from the list of field : sales AMT / Order Quantity we now in the name wrote CALC bc in this way we easily identify which is a calc or a column in the original table --- is a calculated field that contains a formula no VALES !!! how the numbers are calculated? ( no from other cells of the pivot)
Know we have update the table, and we have new columns In the Pivot table -> we have to do a refresh so that updates the data to which refers. From now we have the new columns to be possibly selected for the pivot table Do no have ti give for grant something -> we have to specify explicitly what we want. Are we sure that what I am searching for is there just one in that column
sort from largest to smallest We see that is not unique Double click on the number we want to have details of -> in this case is 3 ( the highest) we see that they are done in different plants, which have different costs. So be sure if we identify a plant and product combining we obtain a unique combination -> concatenating in a new column doing = column 1 & column 2 We need the primary key in the sales -> product and plants Then the usual look up TOTAL REVENUE – TOTAL COST = margin CM =Contribution margin: is the contribution that each transaction gives to the payment of the fixed cost When the fixed cost is larger than the margin cost there is loss To judge the margin we need the percentage to the sales – contribution margin amount over sales. We see the effect of the sales For the same margin I prefer selling less, since means the less effort But this column cannot be aggregate because is the margin of that line over the sales of that line We want to create a calculated field – we will not use it.
We have the data ( in one or more databases ) -> we want to analyse them
Power queries: to go here we have to go on DATA -get data – from file – file workbook ( extracting). We select all the tables. We load to ( we decide where to load) ONLY CREATE CONNECTION and ADD this data to the DATA MODEL. In this way we have already sent the tables in the DATA MODEL This first database is good for cleaning and extracting
There is the creation of a relationship one to many Returning to the pivot table we see the right result CREATING SLICER -> helps to filter and see only what we want ( is the same as putting the filter but more practical) to do it double click on the row you want to filter for) Collecting calendar to the sales -> same process : we have to decide what to which date in the sales we are interested. Then the calendar will “adapt” and show and connect all the tables to the sales. Collecting THE PRODUCT to the sales -> power pivot tell you I cannot do it since there is no a primary key on at least one side. So we have to create a concatenated column - calculated column - in both product and sale -> PRODUCT TABLE 1- go to the data view 2- insert a new column – primary key. 3- Insert the formula- the We have an ITERATION PROCESS – doing it automatically for all the cells = 'Product'[Product] &'Product'[Production Plant] IT MEANS table product, field product SALE TABLE 1- go to the data view 2- insert a new column – FOREIGN KEY PRODUCT 3- Insert the formula- the We have an ITERATION PROCESS – doing it automatically for all the cells =Sales[Product]&Sales[Production Plant]
DIVIDE -> is better to substitute the “/” with divide -> DIVIDE( numerator;denominator)
I have a shop, total sales are my revenue. I have to decide to stay close on Friday, Saturday, Sunday. I want to know how much invoice daily Average revenue per day We have to find a PROXI ( means even if is not precise it’s ok) You did it on your own – try do re do it alone on the file you find the solutio
=COUNTROWS( FILTER( Sales; RELATED('Calendar'[YearMonth] = 201001
Num of transaction F = COUNTROWS(FILTER(Sales,RELATED(Customer[Gender])="F"))
Revenue F = SUMX( FILTER( Sales, RELATED(Customer[Gender])= "F" ), Sales[UnitPrice]*Sales[OrderQuantity] )
all revenues = SUMX( ALL(Sales), Sales[UnitPrice]*Sales[OrderQuantity] )