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.




DAX Patterns 2015


Book Description

"The Data Analysis Expression (DAX) language is a functional language used by PowerPivot and Analysis Services Tabular to define calculations within the data model and to query the data model itself. DAX has its roots in Microsoft Excel expressions and inherits a similar syntax and a functional approach, but ut also extends its scope in order to handle calculations on data stored in multiple tables."--Chapter 1.




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 Cookbook


Book Description

Solve real-world business problems by learning how to create common industry key performance indicators and other calculations using DAX within Microsoft products such as Power BI, SQL Server, and Excel. Key FeaturesLearn to write sophisticated DAX queries to solve business intelligence and data analytics challengesHandle performance issues and optimization within the data model, DAX calculations and moreSolve business issues with Microsoft Excel, Power BI, and SQL Server using DAX queriesBook Description DAX provides an extra edge by extracting key information from the data that is already present in your model. Filled with examples of practical, real-world calculations geared toward business metrics and key performance indicators, this cookbook features solutions that you can apply for your own business analysis needs. You'll learn to write various DAX expressions and functions to understand how DAX queries work. The book also covers sections on dates, time, and duration to help you deal with working days, time zones, and shifts. You'll then discover how to manipulate text and numbers to create dynamic titles and ranks, and deal with measure totals. Later, you'll explore common business metrics for finance, customers, employees, and projects. The book will also show you how to implement common industry metrics such as days of supply, mean time between failure, order cycle time and overall equipment effectiveness. In the concluding chapters, you'll learn to apply statistical formulas for covariance, kurtosis, and skewness. Finally, you'll explore advanced DAX patterns for interpolation, inverse aggregators, inverse slicers, and even forecasting with a deseasonalized correlation coefficient. By the end of this book, you'll have the skills you need to use DAX's functionality and flexibility in business intelligence and data analytics. What you will learnUnderstand how to create common calculations for dates, time, and durationCreate key performance indicators (KPIs) and other business calculationsDevelop general DAX calculations that deal with text and numbersDiscover new ideas and time-saving techniques for better calculations and modelsPerform advanced DAX calculations for solving statistical measures and other mathematical formulasHandle errors in DAX and learn how to debug DAX calculationsUnderstand how to optimize your data modelsWho this book is for Business users, BI developers, data analysts, and SQL users who are looking for solutions to the challenges faced while solving analytical operations using DAX techniques and patterns will find this book useful. Basic knowledge of the DAX language and Microsoft services is mandatory.




PowerPivot Alchemy


Book Description

Rob Collie (PowerPivotPro) and Bill Jelen (MrExcel) join forces in this combined sequel to their best-selling Power Pivot books. Alchemy sets aside the fundamentals of past books and provides a series of practical, easy-to-follow "patterns" for dozens of common analysis, reporting, and dashboarding needs. Three "bonus" chapters introduce you to the newer members of the "Power BI" family – Power Query, Power View, and Power Map. Whether you are starting your transformation from "old school" Excel User to Modern Data Professional or a veteran of the Power BI arts, this book will dramatically expand your data superpowers.




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.




Pro DAX with Power BI


Book Description

Learn the intricate workings of DAX and the mechanics that are necessary to solve advanced Power BI challenges. This book is all about DAX (Data Analysis Expressions), the formula language used in Power BI—Microsoft’s leading self-service business intelligence application—and covers other products such as PowerPivot and SQL Server Analysis Services Tabular. You will learn how to leverage the advanced applications of DAX to solve complex tasks. Often a task seems complex due to a lack of understanding, or a misunderstanding of core principles, and how certain components interact with each other. The authors of this book use solutions and examples to teach you how to solve complex problems. They explain the intricate workings of important concepts such as Filter Context and Context Transition. You will learn how Power BI, through combining DAX building blocks (such as measures, table filtering, and data lineage), can yield extraordinary analytical power. Throughout Pro Dax with Power BI these building blocks are used to create and compose solutions for advanced DAX problems, so you can independently build solutions to your own complex problems, and gain valuable insight from your data. What You Will Learn Understand the intricate workings of DAX to solve advanced problems Deconstruct problems into manageable parts in order to create your own recipes Apply predefined solutions for addressing problems, and link back step-by-step to the mechanics of DAX, to know the foundation of this powerful query language Get fully on board with DAX, a new and evolving language, by learning best practices Who This Book Is For Anyone who wants to use Power BI to build advanced and complex models. Some experience writing DAX is helpful, but not essential if you have experience with other data query languages such as MDX or SQL.




Hands-On Business Intelligence with DAX


Book Description

Implement business intelligence (BI), data modeling, and data analytics within Microsoft products such as Power BI, SQL Server, and Excel Key FeaturesUnderstand the ins and outs of DAX expressions and querying functions with the help of easy-to-follow examplesManipulate data of varying complexity and optimize BI workflows to extract key insightsCreate, monitor, and improve the performance of models by writing clean and robust DAX queriesBook Description Data Analysis Expressions (DAX) is known for its ability to increase efficiency by extracting new information from data that is already present in your model. With this book, you’ll learn to use DAX’s functionality and flexibility in the BI and data analytics domains. You’ll start by learning the basics of DAX, along with understanding the importance of good data models, and how to write efficient DAX formulas by using variables and formatting styles. You’ll then explore how DAX queries work with the help of examples. The book will guide you through optimizing the BI workflow by writing powerful DAX queries. Next, you’ll learn to manipulate and load data of varying complexity within Microsoft products such as Power BI, SQL Server, and Excel Power Pivot. You’ll then discover how to build and extend your data models to gain additional insights, before covering progressive DAX syntax and functions to understand complex relationships in DAX. Later, you’ll focus on important DAX functions, specifically those related to tables, date and time, filtering, and statistics. Finally, you’ll delve into advanced topics such as how the formula and storage engines work to optimize queries. By the end of this book, you’ll have gained hands-on experience in employing DAX to enhance your data models by extracting new information and gaining deeper insights. What you will learnUnderstand DAX, from the basics through to advanced topics, and learn to build effective data modelsWrite and use DAX functions and expressions with the help of hands-on examplesDiscover how to handle errors in your DAX code, and avoid unwanted resultsLoad data into a data model using Power BI, Excel Power Pivot, and SSAS TabularCover DAX functions such as date, time, and time intelligence using code examplesGain insights into data by using DAX to create new informationUnderstand the DAX VertiPaq engine and how it can help you optimize data modelsWho this book is for This book is for data analysts, business analysts, BI developers, or SQL users who want to make the best use of DAX in the BI and data analytics domain with the help of examples. Some understanding of BI concepts is mandatory to fully understand the concepts covered in the book.




Analyzing Data with Power BI and Power Pivot for Excel


Book Description

Renowned DAX experts Alberto Ferrari and Marco Russo teach you how to design data models for maximum efficiency and effectiveness. How can you use Excel and Power BI to gain real insights into your information? As you examine your data, how do you write a formula that provides the numbers you need? The answers to both of these questions lie with the data model. This book introduces the basic techniques for shaping data models in Excel and Power BI. It’s meant for readers who are new to data modeling as well as for experienced data modelers looking for tips from the experts. If you want to use Power BI or Excel to analyze data, the many real-world examples in this book will help you look at your reports in a different way–like experienced data modelers do. As you’ll soon see, with the right data model, the correct answer is always a simple one! By reading this book, you will: • Gain an understanding of the basics of data modeling, including tables, relationships, and keys • Familiarize yourself with star schemas, snowflakes, and common modeling techniques • Learn the importance of granularity • Discover how to use multiple fact tables, like sales and purchases, in a complex data model • Manage calendar-related calculations by using date tables • Track historical attributes, like previous addresses of customers or manager assignments • Use snapshots to compute quantity on hand • Work with multiple currencies in the most efficient way • Analyze events that have durations, including overlapping durations • Learn what data model you need to answer your specific business questions About This Book • For Excel and Power BI users who want to exploit the full power of their favorite tools • For BI professionals seeking new ideas for modeling data




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.