Prednosti power pivot tabele
Kako bi uočili dobre razloge zbog kojih vredi ovladati unapređenom izvedenom (power pivot) tabelom pogledajmo sledeći pregled zadataka koje najčešće radimo u excelu.
Zadatak 1.
Uvoz podataka iz različitih izvora kao što su baze podataka, javni izvori, tabelarni formati, i tekstualne datoteke.
Izvedena (pivot) tabela
Uvoz 1048567 redova tabele u radni prostor, mogućnost izmene podatka u postojećoj tabeli.
Unapređena izvedena (power pivot) tabela
Konekcija sa različitim izvorima podataka, filtriranje, promena imena kolona i imena tabela, bez mogućnosti promene podataka, neograničen broj redova ( tehnički do 2,097 milijarde redova).
Zadatak 2.
Povezivanje podataka iz različitih tabela, izrada hijerarhije, grupa dimenzija i indikatora uspeha (KPI).
Izvedena (pivot) tabela
Povezivanje se obavlja upotrebom VLOOKUP funkcije ili relacije u Data/Relationships, nema izrade hijerarhije, ima grupisanje u izvedenoj tabeli (Rows i Columns okno), ne poseduje izradu indikatora uspeha (KPI).
Unapređena izvedena (power pivot) tabela
Povezivanje se obavlja upotrebom Diagram view u power pivot dodatku, može izraditi hijerarhiski pregled i grupisati dimenzije upotrebom DAX formula u obračunskim kolonama i obračunskim poljima i na osnovu definisanih dimenzija ima mogućnost izrade indikatora uspeha (KPI).
Zadatak 3.
Izrada kalkulacija upotrebom funkcija i formula.
Izvedena (pivot) tabela
Upotreba oko 455 Excel formula i mogućnost upotrebe VBA dodataka (eng. Visual Basic for Applications) za izradu novih funkcija.
Unapređena izvedena (power pivot) tabela
Upotreba posebnog seta 259 DAX formula (eng. Data Analysis Expressions), nema mogućnost VBA programiranja novih korisničkih funkcija.
Razlikuje se po tome što je zasnovan na podacima koji se nalaze u Modelu podataka.
Radni koraci:
- Priprema podataka za učitavanje u model,
- Uspostavljanje relacija između tabela,
- Primena DAX formula u tabelama,
- Izrada pivot tabele iz PowerPivot dodatka,
- Prilagođavanje prikaza podataka u željenoj formi za izveštavanje.
Priprema podataka
Koliko će trajati priprema podataka koji će se obrađivati u Power pivot dodatku najviše zavisi od stanja izvora gde su ti podaci. Ako je reč različitim formatima, tehnološkoj platformi, organizaciji podataka o samoj pripremi više se može pročitati u tekstu o Power Query dodatku. Ako je reč o podacima u eksel tabelama preporučujem da “vizuelne” tabele transformišete u objekte jednostavno nakon selekcije jedne čelije pritisnite na kombinaciju Ctrl+T kao na sledećoj slici.

To uradite za sve tabele koje učestvuju u vašoj analizi i svakako odredite im odgovarajuće ime tabele kako bi ste lakše i brže radili obradu.
Model podataka
Sada svaku tabelu dodajte u model podataka klikom na dugme Add to Data Model kao na sledećoj slici.
Model može da barata sa velikom količinom podataka.
Uspostavljanje relacija
Sledeći korak koji treba preduzeti je da u dodatku PowerPivot na traci sa alatima Home odaberete Diagram View (krajnje desno). Dobićete sadržaj sličan sledećoj slici.
Klikom na Data View vratite se u tabelarni prikaz podataka i izaberite tabelu u kojoj će te izračunati željene podatke.
Primena DAX formula
U našem primeru to bi značilo da odete u tabelu Promet i da u novoj koloni Add Column dodate sledeću formulu. =Promet[kom]*(1-Promet[rabat])*RELATED(Cenovnik[cena_proizvoda]) Gde izračunavamo iznos množenjem podatka iz kolone KOM (broj komada) umanjujemo za iznos rabata kolona RABAT i pozivamo cenu za dati proizvod iz pripadajućeg cenovnika RELATED(Cenovnik[cena_proizvoda]) kao na sledećoj slici.
Kada završimo sve potrebne kalkulacije možemo pristupiti izradi Pivot tabele klikom na dugme PivotTable sa Home trake u Power Pivot dodatku. kao na sledećoj slici.
Sada smo se vratili u Excel i možemo pristupiti daljem prilagođavanju pivot tabele kako bi je doveli u željenu formu za izveštavanje. Urađeni primer se može preuzeti ovde. Power Pivot Uputstvo možete preuzeti
Advantages of power pivot table
In order to notice the good reasons why it is worth mastering the advanced power pivot table, let’s take a look at the following overview of the tasks we usually do in excel.
Task 1.
Import data from various sources such as databases, public sources, spreadsheet formats, and text files.
Derived (pivot) table
Import 1048567 rows of the table into the workspace, the ability to change the data in the existing table.
Improved power pivot
Connection with various data sources, filtering, renaming columns and table names, without the possibility of changing the data, unlimited number of rows (technically up to 2.097 billion rows).
Task 2.
Linking data from different tables, creating hierarchies, groups of dimensions and success indicators (KPI).
PivotTable The
connection is made using the VLOOKUP function or relation in Data / Relationships , there is no hierarchy creation, there is grouping in the derived table (Rows and Columns pane), there is no creation of success indicators (KPI).
Improved power pivot table
Connection is done using Diagram view in power pivot plugin, can create hierarchical overview and group dimensions using DAX formulas in calculation columns and calculation fields and based on defined dimensions has the ability to create success indicators (KPI).
Task 3.
Making calculations using functions and formulas.
PivotTable
Use about 455 Excel formulas and the ability to use VBA plug-ins (Visual Basic for Applications) to create new functions.
Improved power pivot table
Using a special set of 259 DAX formulas (Data Analysis Expressions), there is no possibility of VBA programming of new user functions.
It differs in that it is based on the data contained in the Data Model.
Working steps:
- Preparation of data for loading into the model,
- Establishing relationships between tables,
- Application of DAX formulas in tables,
- Creating a pivot table from the PowerPivot plugin,
- Customize the display of data in the desired reporting form.
Data preparation
How long it will take to prepare the data that will be processed in the Power pivot add-on mostly depends on the state of the source where the data is. If we are talking about different formats, technological platform, organization of data on the preparation itself, you can read more in the text about the Power Query add-on.
When it comes to data in excel tables, I recommend that you transform “visual” tables into objects simply after selecting one cell, press Ctrl + T as in the following figure.

Do this for all tables that participate in your analysis, and be sure to assign them the appropriate table name to make processing easier and faster.
Data model
Now add each table to the data model by clicking the Add to Data Model button as in the following figure.

The model can handle a large amount of data.
Establishing relationships
The next step you need to take is to select Diagram View (far right) in the PowerPivot plugin on the Home toolbar .
You will get content similar to the following image.

Click on Data View to return to the tabular data view and select the table in which you will calculate the desired data.
Application of DAX formula
In our example, this would mean going to the Traffic table and adding the following formula in the new Add Column column.
= Turnover [pcs] * (1-Turnover [discount]) * RELATED (Price list [price_product])
Where we calculate the amount by multiplying the data from the KOM column (number of pieces) we reduce by the amount of the rebate of the RABAT column and call the price for a given product from the corresponding price list RELATED (Price list [product_price]) as in the following figure.

When we have completed all the necessary calculations, we can start creating a Pivot table by clicking on the PivotTable button from the Home bar in the Power Pivot plugin. as in the following figure.

We have now returned to Excel and can proceed to further customize the pivot table to bring it into the desired reporting form.
The prepared example can be download here.
[:]