Data Transformation Strategies
Within any BI project, it is essential that the data you are working with has been properly scrubbed to make for accurate results on your reports and dashboards. Applying data cleansing business rules, also known as transforms, is the method for correcting inaccurate or malformed data, but the process can often be the most time-consuming part of any corporate BI solution. However, the data transformation capabilities built into Power BI are both very powerful and user-friendly. Using the Power Query Editor, tasks that would typically be difficult or time-consuming in an enterprise BI tool are as simple as right-clicking on a column and selecting the appropriate transform for the field. While interacting with the user interface in this editor, a language called M is being written automatically for you behind the scenes.
Through the course of this chapter, you will explore some of the most common features of the Power Query Editor that make it so highly regarded by its users. Since one sample dataset cannot provide all the problems you will run into, you will be provided several small disparate examples to show you what is possible. This chapter will detail the following topics:
- The Power Query Editor
- Transform basics
- Advanced data transformation options
- Leveraging R
- M formula language