Azure Data Factory: SINK Transformation [Introduction to Data Flows Series - Ep. 5]
Azure Data Factory: Sort Transformation [Introduction to Data Flows Series - Ep. 4]
Data Factory (ADF) is a powerful tool that helps businesses manage and transform data in a scalable way. In this blog, we will walk through an essential transformation—the Sort Transformation—as demonstrated by Austin Libal, a trainer at Pragmatic Works, in the fourth episode of their Introduction to Data Flows series.
Austin shows how to sort data, specifically movie ratings, to display the highest-rated movies first. This transformation is a vital component of any data pipeline, enabling users to structure data for more meaningful analysis. Let’s dive into how the sort transformation is implemented in Azure Data Factory.
What is Azure Data Factory?
Azure Data Factory (ADF) is a cloud-based data integration service that enables the creation, scheduling, and orchestration of data pipelines. ADF allows businesses to move, transform, and store data across a wide range of platforms. A key feature of ADF is Data Flows, which provide a visual interface for designing data transformation tasks.
In this blog, we’ll focus on one of these transformations: the Sort Transformation. This transformation allows users to organize their data in a specified order, which is essential for presenting data in a way that makes it easier to analyze and use.
Step-by-Step Process: How the Sort Transformation Works
1. Initial Data Setup
Austin starts by providing a quick recap of previous lessons. The data being used in the demo is movie ratings data, which has already been filtered for movies with ratings of 4 stars and above. The goal is to sort this data by the movie ratings, with the highest-rated movies (5 stars) listed first, followed by 4-star-rated movies.
2. Adding the Sort Transformation
To start the sorting process, Austin demonstrates how to add a Sort Transformation in Azure Data Factory:
- First, he selects the plus icon to add a new transformation.
- From the options, he selects Sort and gives it a title, like "Sort by Highest Rated Movie."
- The sort transformation is applied at the end of the filter ratings transformation.
3. Configuring the Sort Transformation
After adding the sort transformation, Austin navigates to the data preview section in Data Flows. This live data preview feature is one of the most useful in ADF, as it allows users to see how their data looks after each transformation is applied.
Initially, the ratings are in an unsorted order. Movies with 5 stars and 4 stars appear randomly. To sort the data, Austin selects the Ratings column from the available list of columns, which contains the ratings of the movies. He then sets the sort order to descending, as he wants the highest-rated movies (5 stars) to appear at the top.
4. Previewing the Sorted Data
Once the sort transformation is applied, Austin goes back to the data preview to check the results. The preview shows the data now sorted by the highest ratings, with 5-star movies at the top and 4-star-rated movies listed below. This ensures that the data is now more organized and ready for further analysis or presentation.
Why Use the Sort Transformation?
The sort transformation is a powerful tool because it allows users to arrange their data in a specific order based on one or more columns. This is essential in scenarios where data needs to be analyzed or reported in a particular order—such as showing the best-performing products, highest-rated movies, or top-ranked users. The sort transformation simplifies this process without requiring users to write complex SQL queries.
Additionally, Azure Data Factory provides data flow debug functionality, which is incredibly helpful during the development process. This feature allows users to visually inspect the data at each transformation stage, making it easy to track changes and identify any issues early on.
Additional Resources from Pragmatic Works
Austin briefly mentions that those interested in learning more about Azure Data Factory and Data Flows can explore the boot camps and on-demand courses offered by Pragmatic Works. These resources provide in-depth learning experiences on various topics, including Azure Synapse Analytics and Data Flows, which are foundational for working with data in the cloud.
Conclusion
In this video, Austin Liba introduces the Sort Transformation in Azure Data Factory, demonstrating how it can be used to organize data based on specific criteria—like sorting movies by their ratings. By following his straightforward steps, users can implement this transformation into their own data pipelines, making their data more useful and easier to analyze.
If you’re new to Azure Data Factory, this video is a great resource for understanding the basics of Data Flows and how to manipulate data visually. For more in-depth training, Pragmatic Works offers comprehensive learning paths through their boot camps and on-demand content.
We hope you found this guide useful and encourage you to check out more of Pragmatic Works’ Azure training resources!
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Azure Data Factory and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.
Sign-up now and get instant access
ABOUT THE AUTHOR
Austin is a Jacksonville native who graduated from The Baptist College of Florida in 2012. He previously worked as a manager in the retail service industry. He enjoys spending time with his wife and two kids. His primary focus at Pragmatic Works is on Azure Synapse Analytics and teaching the best practices for data integration, enterprise data warehousing, and big data analytics. He also enjoys helping customers learn the ins and outs of Power BI and showing people new ways to grow their business with the Power Platform.
Free Community Plan
On-demand learning
Most Recent
private training

Leave a comment