Supercharge Power BI
eBook - ePub

Supercharge Power BI

Power BI is Better When You Learn To Write DAX

Matt Allington

  1. 280 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Supercharge Power BI

Power BI is Better When You Learn To Write DAX

Matt Allington

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Data analysis expressions (DAX) is the formula language of Power BI. Learning the DAX language is key to empower Power BI users so they can take advantage of these new Business Intelligence (BI) capabilities. This volume clearly explains the concepts of DAX while at the same time offering hands-on practice to engage the reader and help new knowledge stick. This third edition has been updated for the new Power BI Ribbon interface while still providing a bridge for readers wanting to learn DAX in the Power BI, Power Pivot, or Excel.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Supercharge Power BI è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Supercharge Power BI di Matt Allington in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatica e Modellazione e design di dati. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2021
ISBN
9781615471553
1: Concept: Introduction to Data Modelling
In the past, the term data modelling was often unfamiliar to business users as data modelling tended to be the domain of IT BI professionals. But this is no longer the case, thanks to the introduction of self-service BI tools such as Power BI and Power Pivot for Excel.
What Is Data Modelling?
Data modelling is the process of taking data from various sources; loading, structuring, and relating data logically to other data; and enhancing, embellishing, and generally preparing the data for use. The objective is to allow the data to be used without having to write a custom query every time you want to look at a different subset of data.
The data modelling process includes:
  • Determining the optimal structure and shape of the source data to analyse, including whether to bring in all the data, a subset of the data, or summary data.
  • Loading the data from the source into the data model (Power BI in this case).
  • Defining the logical relationships between the various tables (which is similar to what you do with VLOOKUP() in Excel, except the data stays in the source table in Power BI).
  • Defining data types (e.g., specifying whether a column of data is a column of decimal values or a column of currency values, a column of text, etc.).
  • Creating new insights from the source data so that you can analyse concepts that don’t exist natively in the source data but that can be calculated or created inside the data model. For example, if you have a table of transactional data with cost price and selling price, you can extend the data model to include calculations for margin, margin percentage, etc., even though these concepts are not explicitly in the source data. Once you have modelled these new facts in the data model, they can be reused over and over by people using your workbook.
  • Giving meaningful names to your new business insights (i.e., to your measures).
Power BI, Power Pivot, and SSAS Tabular
The data modelling engine that is used inside Power BI is the same one used in Power Pivot for Excel and SQL Server Analysis Services (SSAS) Tabular. The engine has quite a few names, including xVelocity, VertiPaq, SSAS Tabular, and Power Pivot. Despite the different names, the engine is essentially the same across all of these software products (with the exception of any version differences related to version release timing). It therefore follows that virtually everything you learn in this book about data modelling and DAX can be applied to Power Pivot for Excel and SSAS Tabular. In this book I most commonly refer to Power BI, but you should keep in mind that most of the content also applies to these other products.
Remember: Power BI Is a Database Tool, and Excel Is a Spreadsheet Tool
One very important concept you simply must understand is that Power BI is a database tool, and Excel is a spreadsheet tool. A database and a spreadsheet are not the same. A database has structure; it consists of one or more tables of data. Each table has zero, one, or more rows of data and one or more columns. Each column has a defined data format, and the data in each column must conform to that format. A database does not have a column-and-row reference system. A spreadsheet (e.g., an Excel worksheet) lacks the structure of a database. A spreadsheet, like a database, has columns and rows, but these columns and rows lack structure. You can put any data you want into any cell in a spreadsheet, and you can refer to a cell by using a cell reference. You have to follow a lot of rules with a database that don’t apply to a spreadsheet.
Remember that Power BI is not Excel. You need to think differently if you are to master Power BI than you need to think to master Excel.
Power BI Is a Data Model–Based Tool
Power BI is a data model–based BI reporting tool. Not all BI tools are data model based. One example of a non-data model–based BI tool is SQL Server Reporting Services (SSRS). Non-data model–based BI reporting tools require the report writer to first generate a query to fetch the data from a database (typically SQL Server) and return the results of that query to SSRS so the results can be rendered in a report. With a non-data model–based reporting tool, you can typically use a user interface that helps with the generation of the query, or you can use a scripting language such as T-SQL to fetch the data that you need for each report.
Traditional Excel—that is, the spreadsheet tool without the modern BI add-ins of Power Query and Power Pivot—is also a non-data model–based BI tool. In the case of traditional Excel, the user loads data into the spreadsheet and then logically relates and aggregates the data using Excel formulas and builds a report (often on a new sheet) to summarise and present the results (the report).
Now don’t confuse “a tool” here with “a data model–based tool.” Excel is definitely a tool; it is a very flexible tool that lets you build virtually any report without being a programmer. In fact, I think Excel is probably the best and most popular BI tool ever invented. But it is not a data model–based tool because traditional Excel doesn’t have a data model.
There is nothing wrong with using a non-data model–based BI tool; it is just a different approach from using a data model–based tool. The biggest issue with non-data model–based reporting tools is that every time you need a new report, you have to start again, often from scratch. Each report has a single purpose, and there is very little reusability or extensibility.
A data model–based tool like Power BI has many benefits, including the following:
  • The author of the data model builds a reusable model that can be used to solve the current reporting requirements as well as (often) future requirements without the need to write further queries to retrieve a new subset of data.
  • The author can often be a business user (normally with good Excel skills) and doesn’t have to be a professionally trained database administrator or SQL professional.
  • The data model is conceptual in nature, supported by a user-friendly interface that lets you build the data model logically, with minimal coding. Keep in mind that you do need to do some coding (formula writing) for a good data model, but it is fairly easy—no harder than building a typical spreadsheet in Excel—when you have the skills, as you will see later in this book.
The term data modelling can be a little bit scary, but there is no reason to be concerned. When you learn the DAX language and join your tables of data in Power BI, you are actually learning data modelling. By the time you have finished this book, you will be well on your way to being an accomplished data modeller using Power BI. Just use the techniques covered in this book and keep in mind that what you are actually doing is learning to be a data modeller.
With all this in mind, it’s time to build your first simple data model.
2: Concept: Loading Data
The first step in data modelling is to load data into Power BI Desktop. The image below shows the data connector that appears when you connect to a SQL Server database from Power BI Desktop. (There is a different data connector for each data source. You’ll see how to get to the various data connector screens later in this chapter.) There are two modes that you can use in Power BI Desktop when loading data from a database tool such as SQL Server...

Indice dei contenuti

  1. Introduction
  2. 1: Concept: Introduction to Data Modelling
  3. 2: Concept: Loading Data
  4. 3: Concept: Measures
  5. 4: DAX Topic: SUM(), COUNT(), COUNTROWS(), MIN(), MAX(), COUNTBLANK(), and DIVIDE()
  6. 5: Concept: Filter Propagation
  7. 6: Concept: Lookup Tables and Data Tables
  8. 7: DAX Topic: Calculated Columns
  9. 8: DAX Topic: The Basic Iterators SUMX() and AVERAGEX()
  10. 9: DAX Topic: CALCULATE()
  11. 10: DAX Topic: Making DAX Easy to Read
  12. 11: Concept: Evaluation Context and Context Transition
  13. 12: DAX Topic: IF(), SWITCH(), and FIND()
  14. 13: DAX Topic: VALUES(), HASONEVALUE(), SELECTEDVALUE(), and CONCATENATEX()
  15. 14: DAX Topic: ALL(), REMOVEFILTERS(), ALLEXCEPT(), and ALLSELECTED()
  16. 15: DAX Topic: FILTER()
  17. 16: DAX Topic: Time Intelligence
  18. 17: DAX Topic: Variables in DAX
  19. 18: DAX Topic: RANKX() and TOPN()
  20. 19: DAX Topic: RELATED() and RELATEDTABLE()
  21. 20: Concept: Disconnected Tables
  22. 21: Concept: Multiple Data Tables
  23. 22: Concept: Using Analyze in Excel and Cube Formulas
  24. 23: Concept: Transferring DAX Skills to Excel
  25. 24: Concept: Next Steps on Your DAX Journey
  26. Appendix A: Answers to Practice Exercises
  27. Appendix B - DAX Quick Reference List
  28. Index
Stili delle citazioni per Supercharge Power BI

APA 6 Citation

Allington, M. (2021). Supercharge Power BI (3rd ed.). Holy Macro! Books. Retrieved from https://www.perlego.com/book/2984459/supercharge-power-bi-power-bi-is-better-when-you-learn-to-write-dax-pdf (Original work published 2021)

Chicago Citation

Allington, Matt. (2021) 2021. Supercharge Power BI. 3rd ed. Holy Macro! Books. https://www.perlego.com/book/2984459/supercharge-power-bi-power-bi-is-better-when-you-learn-to-write-dax-pdf.

Harvard Citation

Allington, M. (2021) Supercharge Power BI. 3rd edn. Holy Macro! Books. Available at: https://www.perlego.com/book/2984459/supercharge-power-bi-power-bi-is-better-when-you-learn-to-write-dax-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Allington, Matt. Supercharge Power BI. 3rd ed. Holy Macro! Books, 2021. Web. 15 Oct. 2022.