Power BI DAX Simplified


Book Description

DAX is the language of data analysis in Microsoft Power BI, Azure Analysis Services, and Excel Power Pivot. DAX is a powerful language that can quickly empower you to analyze year-over-year or rolling 12 months calculations. It is rare to find an analytics solution using Microsoft technologies (especially Power BI) that doesn’t require some calculations to be written by DAX. As a Power BI (or Microsoft BI) developer, it is essential to learn this language and master it. Learning a language is not just learning the structure and functions. It is learning how, where, and when to use it so that you can solve real-world problems with it. In my training and consulting experience on Power BI, I realized that DAX is the weak point for many Power BI users. DAX itself is not a complex language. It is merely a language of expression. The complexity of learning DAX is not the formula or the functions. It is how to use it in real-world scenarios and how it performs on a dataset or visual. I have been writing many blogs about DAX for many years. My blog articles are all coming from my experience working with Power BI. I found it helpful to compile them all in a book. Because my blog articles practically explain things, I thought it better to title it as a practical way of learning DAX by examples. Indeed, there are books, articles, and Microsoft documentation on how each function works where and how. However, learning these through an example would bring a new way of understanding it. A good analytics solution is a combined outcome of a good data model, good data preparation, and good analytics and calculations. I have written another book about the Basics of modeling in Power BI. This book is covering the calculation and DAX aspects of it. This book is for you if you are building a Power BI solution. Even if you are just visualizing the data, calculations are an essential part of analytics. You do need to have the calculation ready before visualizing it. This is not a book to explain every single function in DAX. The approach in this book is to have practical examples. Every chapter is based on real-world examples of using a combination of functions to solve a challenge. You can start from any chapter and finish at any chapter. The order of chapters suggested in this book is just a guideline to help you have a smooth flow of topics. Each chapter can be read without needing other chapters. Examples of this book are designed in a way that you can use the learning straight away in your Power BI file.




Beginning DAX with Power BI


Book Description

Attention all SQL Pros, DAX is not just for writing Excel-based formulas! Get hands-on learning and expert advice on how to use the vast capabilities of the DAX language to solve common data modeling challenges. Beginning DAX with Power BI teaches key concepts such as mapping techniques from SQL to DAX, filtering, grouping, joining, pivoting, and using temporary tables, all aimed at the SQL professional. Join author Philip Seamark as he guides you on a journey through typical business data transformation scenarios and challenges, and teaches you, step-by-step, how to resolve challenges using DAX. Tips, tricks, and shortcuts are included and explained, along with examples of the SQL equivalent, in order to accelerate learning. Examples in the book range from beginner to advanced, with plenty of detailed explanation when walking through each scenario. What You’ll Learn Turbocharge your Power BI model by adding advanced DAX programming techniques Know when to use calculated measures versus calculated columns Generate new tables on the fly from existing data Optimize, monitor, and tune Power BI to improve performance of your models Discover new ideas, tricks, and time-saving techniques for better models Who This Book Is For Business intelligence developers, business analysts, or any SQL user who wants to use Power BI as a reporting tool. A solid understanding of SQL is recommended, as examples throughout the book include the DAX equivalents to SQL problem/solution scenarios.




Basics of Power BI Modeling


Book Description

I have been dealing with many Power BI challenges in my professional life as a Power BI consultant and a trainer. Challenges normally come as calculation or DAX questions, or sometimes as a performance question. However, after digging deeper into the problem, soon, it will be revealed that the problem is related to a more fundamental challenge; data modeling.If you have a Power BI implementation with many calculation-related or performance-related issues, I strongly suggest looking into your data model because that is where most of the problems start.A good data model is a great base, which upon that, you can build up many stories of calculations and analysis. A bad data model causes problems on every level that you add upon it, and might sometime cause the whole solution to collapse.Fortunately, data modeling is not rocket science. I explained the basic principles of the data modeling with examples in this book. Use this book as the learning path towards a better data model. Most of the tips mentioned in this book are product-agnostic (such as star-schema, dimension, and fact tables). However, this book is particularly designed and developed for a Power BI product user.This book is for you if you are building a Power BI solution. If your task is only visualizing the existing data, this book might not be needed for you. However, What I have seen in many cases, is that the requirement starts with just visualize the data, and then more data tables appear, and you get into the tunnel of data modeling without knowing the principles of it. This book is a guide for you through that tunnel.




The Definitive Guide to DAX


Book Description

This comprehensive and authoritative guide will teach you the DAX language for business intelligence, data modeling, and analytics. Leading Microsoft BI consultants Marco Russo and Alberto Ferrari help you master everything from table functions through advanced code and model optimization. You’ll learn exactly what happens under the hood when you run a DAX expression, how DAX behaves differently from other languages, and how to use this knowledge to write fast, robust code. If you want to leverage all of DAX’s remarkable power and flexibility, this no-compromise “deep dive” is exactly what you need. Perform powerful data analysis with DAX for Microsoft SQL Server Analysis Services, Excel, and Power BI Master core DAX concepts, including calculated columns, measures, and error handling Understand evaluation contexts and the CALCULATE and CALCULATETABLE functions Perform time-based calculations: YTD, MTD, previous year, working days, and more Work with expanded tables, complex functions, and elaborate DAX expressions Perform calculations over hierarchies, including parent/child hierarchies Use DAX to express diverse and unusual relationships Measure DAX query performance with SQL Server Profiler and DAX Studio




DAX Patterns


Book Description

A pattern is a general, reusable solution to a frequent or common challenge. This book is the second edition of the most comprehensive collection of ready-to-use solutions in DAX, that you can use in Microsoft Power BI, Analysis Services Tabular, and Power Pivot for Excel. The book includes the following patterns: Time-related calculations, Standard time-related calculations, Month-related calculations, Week-related calculations, Custom time-related calculations, Comparing different time periods, Semi-additive calculations, Cumulative total, Parameter table, Static segmentation, Dynamic segmentation, ABC classification, New and returning customers, Related distinct count, Events in progress, Ranking, Hierarchies, Parent-child hierarchies, Like-for-like comparison, Transition matrix, Survey, Basket analysis, Currency conversion, Budget.




Mastering Power Query in Power BI and Excel


Book Description

Any data analytics solution requires data population and preparation. With the rise of data analytics solutions these years, the need for this data preparation becomes even more essential. Power BI is a helpful data analytics tool that is used worldwide by many users. As a Power BI (or Microsoft BI) developer, it is essential to learn how to prepare the data in the right shape and format needed. You need to learn how to clean the data and build it in a structure that can be modeled easily and used high performant for visualization. Data preparation and transformation is the backend work. If you consider building a BI system as going to a restaurant and ordering food. The visualization is the food you see on the table nicely presented. The quality, the taste, and everything else come from the hard work in the kitchen. The part that you don’t see or the backend in the world of Power BI is Power Query. You may already be familiar with other data preparation and transformation technologies, such as T-SQL, SSIS, Azure Data Factory, Informatica, etc. Power Query is a data transformation engine capable of preparing the data in the format you need. The good news is that to learn Power Query; you don’t need to know programming. Power Query is for citizen data engineers. However, this doesn’t mean that Power Query is not capable of performing advanced transformation. Power Query exists in many Microsoft tools and services such as Power BI, Excel, Dataflows, Power Automate, Azure Data Factory, etc. Through the years, this engine became more powerful. These days, we can say this is essential learning for anyone who wants to do data analysis with Microsoft technology to learn Power Query and master it. We have been working with Power Query since the very early release of that in 2013, named Data Explorer, and wrote blog articles and published videos about it. The number of articles we published under this subject easily exceeds hundreds. Through those articles, some of the fundamentals and key learnings of Power Query are explained. We thought it is good to compile some of them in a book series. A good analytics solution combines a good data model, good data preparation, and good analytics and calculations. Reza has written another book about the Basics of modeling in Power BI and a book on Power BI DAX Simplified. This book is covering the data preparation and transformations aspects of it. This book series is for you if you are building a Power BI solution. Even if you are just visualizing the data, preparation and transformations are an essential part of analytics. You do need to have the cleaned and prepared data ready before visualizing it. This book is compiled into a series of two books, which will be followed by a third book later; Getting started with Power Query in Power BI and Excel (already available to be purchased separately) Mastering Power Query in Power BI and Excel (This book) Power Query dataflows (will be published later) This book deeps dive into real-world challenges of data transformation. It starts with combining data sources and continues with aggregations and fuzzy operations. The book covers advanced usage of Power Query in scenarios such as error handling and exception reports, custom functions and parameters, advanced analytics, and some helpful table and list functions. The book continues with some performance tuning tips and it also explains the Power Query formula language (M) and the structure of it and how to use it in practical solutions. Although this book is written for Power BI and all the examples are presented using the Power BI. However, the examples can be easily applied to Excel, Dataflows, and other tools and services using Power Query.




Getting started with Power Query in Power BI and Excel


Book Description

Any data analytics solution requires data population and preparation. With the rise of data analytics solutions these years, the need for this data preparation becomes even more essential. Power BI is a helpful data analytics tool that is used worldwide by many users. As a Power BI (or Microsoft BI) developer, it is essential to learn how to prepare the data in the right shape and format needed. You need to learn how to clean the data and build it in the structure that can be modeled easily and used high performant for visualization. Data preparation and transformation is the backend work. If you consider building a BI system as going to a restaurant and ordering food. The visualization is the food you see on the table nicely presented. The quality, the taste, and everything else comes from the hard work in the kitchen. The part that you don’t see or the backend in the world of Power BI is Power Query. You may be already familiar with some other data preparation and data transformation technologies, such as T-SQL, SSIS, Azure Data Factory, Informatica, etc. Power Query is a data transformation engine capable of preparing the data in the format you need. The good news is that to learn Power Query; you don’t need to know programming. Power Query is for citizen data engineers. However, this doesn’t mean that Power Query is not capable of performing advanced transformation. Unfortunately, because Power Query and data preparation is the kitchen work of the BI system, many Power BI users skip the learning of it and become aware of it somewhere along their BI project. Once they get familiar with it, they realize there are tons of things they could have implemented easier, faster, and in a much more maintainable way using Power Query. In other words, they learn mastering Power Query is the key skill toward mastering Power BI. We have been working with Power Query since the very early release of that in 2013, named Data Explorer, and wrote blog articles and published videos about it. The number of articles we published under this subject easily exceeds hundreds. Through those articles, some of the fundamentals and key learnings of Power Query are explained. We thought it is good to compile some of them in a book. A good analytics solution combines a good data model, good data preparation, and good analytics and calculations. Reza has written another book about the Basics of modeling in Power BI and a book on Power BI DAX Simplified. This book is covering the data preparation and transformations aspects of it. This book is for you if you are building a Power BI solution. Even if you are just visualizing the data, preparation and transformations are an essential part of analytics. You do need to have the cleaned and prepared data ready before visualizing it. This book is complied into a series of two books, which will be followed by a third book later; Getting started with Power Query in Power BI and Excel (this book) Mastering Power Query in Power BI and Excel (already available to be purchased separately) Power Query dataflows (will be published later) Although this book is written for Power BI and all the examples are presented using the Power BI. However, the examples can be easily applied to Excel, Dataflows, and other tools and services using Power Query.




Introducing Microsoft Power BI


Book Description

This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book. Introducing Microsoft Power BI enables you to evaluate when and how to use Power BI. Get inspired to improve business processes in your company by leveraging the available analytical and collaborative features of this environment. Be sure to watch for the publication of Alberto Ferrari and Marco Russo's upcoming retail book, Analyzing Data with Power BI and Power Pivot for Excel (ISBN 9781509302765). Go to the book's page at the Microsoft Press Store here for more details:http://aka.ms/analyzingdata/details. Learn more about Power BI at https://powerbi.microsoft.com/.




Row-Level Security in Power BI


Book Description

I have been writing and presenting about Row-Level Security in Power BI for many years. Through the comments and feedback I got from my presentations and articles, I felt a need for a place to have everything gathered in one place. The lack of a book that explains everything about the current subject motivated me to end up gathering all my articles in this book. The result is what you are reading. Row-Level Security in Power BI is not about sharing your content. It is, on the other hand, about sharing the same content with a different audience in the way that they see different views of the data. They will have different access to the data. Some of them might see the entire data, and some others might see part of the data that they are authorized to see. Instead of creating multiple reports with the same format, fields, calculations, and visualizations, and only making them different in filtering, the correct way to do it is through row-level security. This will make sure you have the maximum consistency and minimum maintenance for your Power BI project. This is not a book about theories. This is a hands-on book. There are tons of demos and examples with the code samples that you can try. You will learn through this book, what is row-level security. You will learn different types of security and patterns in which you will see the most common challenges for implementing the security and the solution to save them. The book starts with the basics of row-level security, then you will learn about static vs. dynamic row-level security. You will learn patterns such as everyone see their own data, but the manager sees a different view or users and profiles for branch managers. Or the organizational hierarchy, or even the many-to-many relationship challenge of row-level security etc. through this book. This book is not about how to create a report, build a visualization, connect to a dataset, or set up a gateway. If you want to learn those, I do recommend reading my other book: Power BI online book, from Rookie to Rock Star.




Mastering Microsoft Power BI


Book Description

Design, create and manage robust Power BI solutions to gain meaningful business insights Key Features Master all the dashboarding and reporting features of Microsoft Power BI Combine data from multiple sources, create stunning visualizations and publish your reports across multiple platforms A comprehensive guide with real-world use cases and examples demonstrating how you can get the best out of Microsoft Power BI Book DescriptionThis book is intended for business intelligence professionals responsible for the design and development of Power BI content as well as managers, architects and administrators who oversee Power BI projects and deployments. The chapters flow from the planning of a Power BI project through the development and distribution of content to the administration of Power BI for an organization. BI developers will learn how to create sustainable and impactful Power BI datasets, reports, and dashboards. This includes connecting to data sources, shaping and enhancing source data, and developing an analytical data model. Additionally, top report and dashboard design practices are described using features such as Bookmarks and the Power KPI visual. BI managers will learn how Power BI’s tools work together such as with the On-premises data gateway and how content can be staged and securely distributed via Apps. Additionally, both the Power BI Report Server and Power BI Premium are reviewed. By the end of this book, you will be confident in creating effective charts, tables, reports or dashboards for any kind of data using the tools and techniques in Microsoft Power BI.What you will learn Build efficient data retrieval and transformation processes with the Power Query M Language Design scalable, user-friendly DirectQuery and Import Data Models Develop visually rich, immersive, and interactive reports and dashboards Maintain version control and stage deployments across development, test, and production environments Manage and monitor the Power BI Service and the On-premises data gateway Develop a fully on-premise solution with the Power BI Report Server Scale up a Power BI solution via Power BI Premium capacity and migration to Azure Analysis Services or SQL Server Analysis Services Who this book is for Business Intelligence professionals and existing Power BI users looking to master Power BI for all their data visualization and dashboarding needs will find this book to be useful. While understanding of the basic BI concepts is required, some exposure to Microsoft Power BI will be helpful.