{"id":41905,"date":"2024-10-15T22:51:40","date_gmt":"2024-10-15T17:51:40","guid":{"rendered":"https:\/\/chartexpo.com\/blog\/?p=41905"},"modified":"2025-11-13T13:55:56","modified_gmt":"2025-11-13T08:55:56","slug":"edit-queries-in-power-bi","status":"publish","type":"post","link":"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi","title":{"rendered":"Edit Queries in Power BI for Customized Data Views"},"content":{"rendered":"<p>Microsoft Power BI is a powerful business intelligence (BI) platform that empowers non-technical business users to efficiently aggregate, analyze, visualize, and collaborate on data. Its user-friendly interface makes it easily accessible to users.<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" style=\"max-width: 100%;\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/edit-queries-in-power-bi.jpg\" alt=\"Edit Queries in Power BI\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2NTkrU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTY1OSs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTY1OSs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<p>Before data is loaded into a model, it has to be transformed and cleaned \u201d\u201d and that&#8217;s where edit queries in Power BI come in. In this guide, you&#8217;ll discover what queries in Power BI are, figure out why edit queries in Power BI are used, and when to use Power BI edit queries.<\/p>\n<h3>Table of Contents:<\/h3>\n<ol>\n<li><a href=\"#what-are-queries-in-power-bi\">What are Queries in Power BI?<\/a><\/li>\n<li><a href=\"#why-use-edit-queries-in-power-bi\">Why Use Edit Queries in Power BI?<\/a><\/li>\n<li><a href=\"#when-to-use-power-bi-edit-queries\">When to Use Power BI Edit Queries?<\/a><\/li>\n<li><a href=\"#how-to-edit-a-query-in-power-bi\">How to Edit a Query in Power BI?<\/a><\/li>\n<li><a href=\"#visualize-edited-queries-in-power-bi\">How to Visualize Edited Queries in Power BI?<\/a><\/li>\n<li><a href=\"#what-are-the-best-practices-for-query-editing\">What are the Best Practices for Query Editing?<\/a><\/li>\n<li><a href=\"#wrap-up\">Wrap Up<\/a><\/li>\n<\/ol>\n<p>First&#8230;<\/p>\n<h2 id=\"what-are-queries-in-power-bi\">What are Queries in Power BI?<\/h2>\n<p>Power Query in Power BI is a robust data connectivity and data preparation tool within the platform. The tool helps users effortlessly connect and import data from diverse sources like Microsoft Excel, Analysis Services, Power BI, and Dataverse.<\/p>\n<h2 id=\"why-use-edit-queries-in-power-bi\">Why Use Edit Queries in Power BI?<\/h2>\n<ul>\n<li><strong>Custom Transformation:<\/strong> It provides the ability to transform and reshape data to meet specific analytical needs like merging tables or creating calculated columns.<\/li>\n<li><strong>Data Cleaning:<\/strong> It allows you to remove errors, inconsistencies, and duplicates. This ensures that high-quality data is used for analysis.<\/li>\n<li><strong>Improved Performance:<\/strong> It streamlines <a href=\"https:\/\/chartexpo.com\/blog\/filters-in-power-bi\" target=\"_blank\" rel=\"noopener noreferrer\">data by filtering<\/a> and aggregating it before loading it into the model. This enhances report performance.<\/li>\n<li><strong>Enhanced Accuracy:<\/strong> It ensures data is accurate and aligns with business rules. This will, in turn, reduce the risk of incorrect insights.<\/li>\n<\/ul>\n<h2 id=\"when-to-use-power-bi-edit-queries\">When to Use Power BI Edit Queries?<\/h2>\n<ul>\n<li><strong>Data Cleaning:<\/strong> You have to <a href=\"https:\/\/chartexpo.com\/blog\/power-bi-remove-duplicates\" target=\"_blank\" rel=\"noopener noreferrer\">remove duplicates<\/a>, handle missing values, or correct inconsistencies in the data.<\/li>\n<li><strong>Data Transformation:<\/strong> You have to reshape or <a href=\"https:\/\/chartexpo.com\/blog\/power-bi-transform-data\" target=\"_blank\" rel=\"noopener noreferrer\">transform data<\/a> by splitting fields, pivoting columns, or merging tables.<\/li>\n<li><strong>Data Filtering:<\/strong> You have to filter out unnecessary columns or rows to focus on relevant information.<\/li>\n<li><strong>Enhancing Data Quality:<\/strong> You have to apply business rules, enrich data, or standardize formats to improve accuracy and relevance.<\/li>\n<\/ul>\n<h2 id=\"how-to-edit-a-query-in-power-bi\">How to Edit a Query in Power BI?<\/h2>\n<p>With Power BI Desktop, users can connect to the world of data, create foundational and compelling reports, and share their efforts with others. This will, in turn, help them build on the work, and expand their business intelligence efforts.<\/p>\n<p>Power BI Desktop has three views:<\/p>\n<ul>\n<li><strong>Report view:<\/strong> Queries are used to build compelling <a href=\"https:\/\/chartexpo.com\/blog\/data-visualization-guide\" target=\"_blank\" rel=\"noopener noreferrer\">data visualizations<\/a> that are arranged just the way you want them. These visualizations can come with multiple pages, and the user can easily share them with other stakeholders.<\/li>\n<li><strong>Data view:<\/strong> The data in your report can be displayed in <a href=\"https:\/\/chartexpo.com\/blog\/power-bi-data-model\" target=\"_blank\" rel=\"noopener noreferrer\">data model format<\/a>. This way, you can add measures, create new columns, and manage relationships.<\/li>\n<li><strong>Model view:<\/strong> It helps you get a <a href=\"https:\/\/chartexpo.com\/blog\/data-presentation\" target=\"_blank\" rel=\"noopener noreferrer\">graphical representation<\/a> of the <a href=\"https:\/\/chartexpo.com\/blog\/create-relationship-in-power-bi\" target=\"_blank\" rel=\"noopener noreferrer\">relationships established<\/a> in the data model. This way, the user can easily manage (or modify) them as needed.<\/li>\n<\/ul>\n<p>To access these views, you&#8217;ll have to select one of the three icons along the left side of Power BI Desktop. From the image below, you&#8217;ll notice that the Report view has been selected, and it&#8217;s indicated by the red band beside the icon.<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/notice-report-view-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/notice-report-view-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Notice Report View After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<p>Power BI Desktop comes with the Power Query Editor. You can use the Power Query Editor to connect to one or multiple data sources, and shape and transform the data to meet your needs. After that, load the model into Power BI Desktop.<\/p>\n<h3>Power Query Editor<\/h3>\n<p>To get to Power Query Editor, select \u201cTransform data\u201d from the Home tab of Power BI Desktop.<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/select-transform-data-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/select-transform-data-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Select Transform Data After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<p>If there are no data connections, Power Query Editor appears as a blank pane.<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/power-query-editor-appears-as-a-blank-pane-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/power-query-editor-appears-as-a-blank-pane-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Power Query Editor Appears as a Blank Pane After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<p>After the query is loaded, the Power Query Editor view becomes more fascinating. If the New Source button in the top left is used to connect to a Web data source, the Power Query Editor loads information about the data.<\/p>\n<p>Here&#8217;s how the Power Query Editor appears after a data connection has been established.<\/p>\n<ul>\n<li>In the ribbon, many ribbons are active to interact with the data in the query.<\/li>\n<li>In the left pane, queries are listed and available for selection, viewing, and shaping.<\/li>\n<li>In the center pane, data from the selected query is displayed and available for shaping.<\/li>\n<li>The Query Settings pane appears, and it lists the query&#8217;s properties and applied steps.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/power-query-editor-appears-after-data-connection-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/power-query-editor-appears-after-data-connection-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Power Query Editor Appears After Data Connection After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<h2 id=\"visualize-edited-queries-in-power-bi\">How to Visualize Edited Queries in Power BI?<\/h2>\n<p>Learn how to visualize edited queries in Power BI and use a <a href=\"https:\/\/chartexpo.com\/charts\/sankey-diagram\" target=\"_blank\" rel=\"noopener\">Sankey diagram maker<\/a> to map data flows and transformations effectively.<\/p>\n<p><strong>Stage 1: Logging in to Power BI<\/strong><\/p>\n<ul>\n<li>Log in to Power BI.<\/li>\n<li>Enter your email address and click the \u201c<strong>Submit<\/strong>\u201d button.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-email-to-login-to-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-email-to-login-to-power-bi.jpg\" alt=\"Enter email to login to Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You are redirected to your Microsoft account.<\/li>\n<li>Enter your password and click \u201c<strong>Sign in<\/strong>\u201c.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-password-to-login-to-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-password-to-login-to-power-bi.jpg\" alt=\"Enter Password to login to Power BI\" width=\"363\" \/><\/a><\/div>\n<ul>\n<li>You can choose whether to stay signed in.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/click-on-stay-signed-in.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/click-on-stay-signed-in.jpg\" alt=\"Click on stay signed in\" width=\"392\" \/><\/a><\/div>\n<ul>\n<li>Once done, the Power BI home screen will open.<\/li>\n<\/ul>\n<h4>Stage 2: Creating a Data Set and Selecting the Data Set to Use in Your Chart<\/h4>\n<ul>\n<li>Go to the left-side menu and click the \u201c<strong>Create<\/strong>\u201d button.<\/li>\n<li>Select \u201c<strong>Paste or manually enter data<\/strong>\u201c.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/02\/select-paste-or-manually-enter-data-in-power-bi-ce487.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/02\/select-paste-or-manually-enter-data-in-power-bi-ce487.jpg\" alt=\"select Paste or manually enter data in Power BI ce487\" width=\"650\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2NTkrU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTY1OSs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTY1OSs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<ul>\n<li>We&#8217;ll use the <a href=\"https:\/\/chartexpo.com\/blog\/sample-data-for-power-bi\" target=\"_blank\" rel=\"noopener noreferrer\">sample data<\/a> below for this example.<\/li>\n<\/ul>\n<table class=\"static\" style=\"table-layout: fixed; overflow-x: auto; border: 1px; font-size: 17px;\">\n<tbody>\n<tr>\n<td><strong>Application Channels<\/strong><\/td>\n<td><strong>Initial Screening<\/strong><\/td>\n<td><strong>Conduct Interviews<\/strong><\/td>\n<td><strong>Employee Onboarding<\/strong><\/td>\n<td>\n<div>\n<div><strong>Total Candidates<\/strong><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Social Media<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Hired<\/td>\n<td>32<\/td>\n<\/tr>\n<tr>\n<td>Social Media<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Not Hired<\/td>\n<td>400<\/td>\n<\/tr>\n<tr>\n<td>Social Media<\/td>\n<td>Short Listed<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td>800<\/td>\n<\/tr>\n<tr>\n<td>Social Media<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td><\/td>\n<td>1100<\/td>\n<\/tr>\n<tr>\n<td>Company Career Page<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Hired<\/td>\n<td>20<\/td>\n<\/tr>\n<tr>\n<td>Company Career Page<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Not Hired<\/td>\n<td>250<\/td>\n<\/tr>\n<tr>\n<td>Company Career Page<\/td>\n<td>Short Listed<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td>500<\/td>\n<\/tr>\n<tr>\n<td>Company Career Page<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td><\/td>\n<td>900<\/td>\n<\/tr>\n<tr>\n<td>Events<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Hired<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>Events<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Not Hired<\/td>\n<td>100<\/td>\n<\/tr>\n<tr>\n<td>Events<\/td>\n<td>Short Listed<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td>200<\/td>\n<\/tr>\n<tr>\n<td>Events<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td><\/td>\n<td>350<\/td>\n<\/tr>\n<tr>\n<td>Paper Media<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Hired<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>Paper Media<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Not Hired<\/td>\n<td>80<\/td>\n<\/tr>\n<tr>\n<td>Paper Media<\/td>\n<td>Short Listed<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td>135<\/td>\n<\/tr>\n<tr>\n<td>Paper Media<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td><\/td>\n<td>700<\/td>\n<\/tr>\n<tr>\n<td>Employee Referrals<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Hired<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>Employee Referrals<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Not Hired<\/td>\n<td>70<\/td>\n<\/tr>\n<tr>\n<td>Employee Referrals<\/td>\n<td>Short Listed<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td>80<\/td>\n<\/tr>\n<tr>\n<td>Employee Referrals<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td><\/td>\n<td>110<\/td>\n<\/tr>\n<tr>\n<td>Direct<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Hired<\/td>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>Direct<\/td>\n<td>Short Listed<\/td>\n<td>Final Interview<\/td>\n<td>Not Hired<\/td>\n<td>150<\/td>\n<\/tr>\n<tr>\n<td>Direct<\/td>\n<td>Short Listed<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td>425<\/td>\n<\/tr>\n<tr>\n<td>Direct<\/td>\n<td>Knocked Out<\/td>\n<td><\/td>\n<td><\/td>\n<td>600<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Paste the data table above into the \u201cPower Query\u201d window. After that, select the \u201cCreate a dataset only\u201d option.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/select-create-a-dataset-only-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/select-create-a-dataset-only-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Select Create a Dataset Only After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Navigate to the left-side menu, and click on the &#8220;Data Hub&#8221; option. Power BI will populate the data set list. If there are no datasets created, you&#8217;ll get an error message.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-on-data-hub-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-on-data-hub-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Click on Data Hub After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Click on the \u201cCreate Report\u201d dropdown.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-on-create-report-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-on-create-report-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Click on Create Report After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>To add the Power BI Sankey Diagram Extension by ChartExpo, you&#8217;ll have to create the <a href=\"https:\/\/www.chartexpo.com\/charts\/sankey-diagram\" target=\"_blank\" rel=\"noopener noreferrer\">Sankey Diagram<\/a> using an add-in or the Power BI visual from AppSource. Navigate to the right side of the Power BI dashboard, and open the Power BI visualizations panel. Next, click the ellipsis symbol (&#8230;) to import the Power BI Sankey Diagram extension by CharExpo. On the following menu that opens, select the \u201cGet more visuals\u201d option.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/select-get-more-visuals-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/select-get-more-visuals-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Select Get More Visuals After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Enter \u201cChartExpo\u201d in the highlighted search box. You&#8217;ll see the \u201cSankey Diagram for Power BI by ChartExpo&#8217; as shown below.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/enter-chartexpo-in-search-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/enter-chartexpo-in-search-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Enter ChartExpo in Search After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Click on the Sankey Diagram. After that, click the highlighted &#8220;Add&#8221; button.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-add-button-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-add-button-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Click Add Button After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Power BI will add the \u201cSankey Diagram for Power BI by ChartExpo\u201d icon in the visualization panel.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/sankey-diagram-icon-in-visualization-panel-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/sankey-diagram-icon-in-visualization-panel-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Sankey Diagram Icon in Visualization Panel After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>To draw a Sankey Diagram with ChartExpo&#8217;s Power BI extension, you&#8217;ll have to select the \u201cSankey Diagram for Power BI by ChartExpo\u201d icon in the visualization panel. After that, you&#8217;ll see a dashboard similar to the one below displayed on your screen.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/dashboard-similar-displayed-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/dashboard-similar-displayed-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Dashboard Similar Displayed After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Select the fields to use in the Sankey chart.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/slect-fields-to-use-in-sankey-chart-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/slect-fields-to-use-in-sankey-chart-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Slect Fields to Use in Sankey Chart After Learning Edit Queries in Power BI\" width=\"240\" \/><\/a><\/div>\n<ul>\n<li>When selecting the fields, follow the sequence below:\n<ul>\n<li>Application Channels<\/li>\n<li>Initial Screening<\/li>\n<li>Conduct Interviews<\/li>\n<li>Employee Onboarding<\/li>\n<li>Total Candidates<\/li>\n<\/ul>\n<\/li>\n<li>You&#8217;ll have to provide the email address or the ChartExpo license. Add the key under the visual section.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/add-email-address-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/add-email-address-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Add Email Address After Learning Edit Queries in Power BI\" width=\"234\" \/><\/a><\/div>\n<ul>\n<li>After that, you&#8217;ll see the Sankey Chart displayed with your data. The top header text in the chart can be added under the General section.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/add-top-header-under-general-section-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/add-top-header-under-general-section-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Add Top Header Under General Section After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You can click on Visual to set the number and also enable the options as shown below:<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-visuals-to-set-the-number-and-enable-the-options-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/click-visuals-to-set-the-number-and-enable-the-options-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Click Visuals to Set the Number and Enable the Options After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You can change the \u201cNode Font Style.\u201d<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-node-font-style-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-node-font-style-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Change Node Font Style After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>There&#8217;s an option to change the &#8220;Level Font Style.&#8221;<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-level-font-style-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-level-font-style-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Change Level Font Style After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Here are the Level Labels.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/here-are-level-labels-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/here-are-level-labels-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Here are Level Labels After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Here&#8217;s how to change the Nodes&#8217; color.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-nodes-color-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-nodes-color-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Change Nodes Color After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Since you&#8217;ve discovered \u201chow to change Level 1 color,&#8221; you should follow the same steps to change the node color of other levels.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-level-1-color-after-learning-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/change-level-1-color-after-learning-edit-queries-in-power-bi.jpg\" alt=\"Change Level 1 Color After Learning Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Here&#8217;s the final look of the HR Dashboard in Power BI using ChartExpo after changing the all-nodes color.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/final-edit-queries-in-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/final-edit-queries-in-power-bi.jpg\" alt=\"Final Edit Queries in Power BI\" width=\"650\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2NTkrU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTY1OSs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/TrafficTracker\/MTYrYmxvZytzZStjZXhwbytDRTY1OSs=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<p><strong>Insights:<\/strong><\/p>\n<ul>\n<li>Social Media is the primary application channel with the highest number of candidates (1100).<\/li>\n<li>Company Career Page follows with 900 candidates.<\/li>\n<li>Paper Media and Events have comparatively lower candidate counts of 700 and 350, respectively.<\/li>\n<li>Direct applications have 600 candidates.<\/li>\n<\/ul>\n<h3>Master Edit Queries in Power BI to Transform Data for Powerful Visuals:<\/h3>\n<p>Dive into the world of Edit Queries in Power BI with this hands-on tutorial, where you\u2019ll learn how to refine and transform your data before creating impactful charts and graphs. With Power BI\u2019s powerful Query Editor, you\u2019ll gain the skills to clean, shape, and combine data from multiple sources, ensuring that your visuals reflect accurate, high-quality information. Whether it&#8217;s filtering out unnecessary data, merging tables, or performing complex transformations, mastering Edit Queries will lay the foundation for effective data analysis. Once your data is transformed, you can move seamlessly into creating dynamic reports and dashboards that bring your insights to life. By optimizing your data through query editing, you ensure your Power BI visualizations are both meaningful and actionable, empowering better decision-making and driving business growth.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/_UyS9hzktr8?si=zkl8vEiizt8_NipC\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h2 id=\"what-are-the-best-practices-for-query-editing\">What are the Best Practices for Query Editing?<\/h2>\n<ul>\n<li><strong>Plan Transformations:<\/strong> Outline your data transformation needs before editing to streamline the process.<\/li>\n<li><strong>Start with Raw Data:<\/strong> Work with raw data to ensure you capture all necessary details.<\/li>\n<li><strong>Use Steps Wisely:<\/strong> Apply transformations in a logical sequence to minimize complex steps and enhance readability.<\/li>\n<li><strong>Name Queries Clearly:<\/strong> <a href=\"https:\/\/chartexpo.com\/blog\/descriptive-research-design\" target=\"_blank\" rel=\"noopener noreferrer\">Use descriptive names<\/a> for queries and steps to improve clarity and manageability.<\/li>\n<li><strong>Remove Unnecessary Data:<\/strong> Filter out irrelevant data early to reduce complexity and improve performance.<\/li>\n<li><strong>Preview Results:<\/strong> Preview the results to ascertain that transformations produce the desired results.<\/li>\n<\/ul>\n<h2>FAQs<\/h2>\n<h3>Can I edit queries directly in Power BI Desktop?<\/h3>\n<p>Yes, you can edit queries directly in Power BI Desktop using the Power Query Editor.<\/p>\n<h3>How can I rename a column in the Query Editor?<\/h3>\n<p>In Power Query Editor, right-click on the column header and select \u201cRename.\u201d You can also double-click on the header and type the new name. Press Enter to apply the change.<\/p>\n<h3>How do I edit a query after it has been loaded to the model?<\/h3>\n<p>To edit a query after loading, navigate to the Power BI Desktop, click \u201cTransform data\u201d on the Home tab, and modify the query in the Power Query Editor. Apply changes to update the model.<\/p>\n<h4 id=\"wrap-up\">Wrap Up<\/h4>\n<p>Queries in Power BI are used to transform and retrieve data. Cleaning and shaping data are the processes used to facilitate these processes in Power BI Query Editor.<\/p>\n<p>With edit queries in Power BI, users can ascertain the accuracy, relevance, and performance of their data model. To get the best out of the query editing process, you have to document changes. That can be achieved by adding comments. Documentation helps explain complex transformations for future reference.<\/p>\n<p>Furthermore, you should remove unnecessary data by filtering out irrelevant data. This will help reduce complexity and improve performance. You should also check the preview to ascertain that the transformations produce your desired results.<\/p>\n<p>Now you know what edit queries in Power BI are, and why you should use it, you can follow the steps outlined in this guide to produce compelling data visuals.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><p>Discover how to edit queries in Power BI to transform, &#038; filter data for accurate analysis, ensuring high-quality insights &#038; optimized performance.<\/p>\n&nbsp;&nbsp;<a href=\"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi\"><\/a><\/p>","protected":false},"author":1,"featured_media":41913,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1017],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Edit Queries in Power BI for Customized Data Views -<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:title\" content=\"Edit Queries in Power BI for Customized Data Views -\" \/>\r\n<meta name=\"twitter:description\" content=\"Discover how to edit queries in Power BI to transform, &amp; filter data for accurate analysis, ensuring high-quality insights &amp; optimized performance.\" \/>\r\n<meta name=\"twitter:image\" content=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/feature-ce659-200x200-1.jpg\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Edit Queries in Power BI for Customized Data Views -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi","twitter_card":"summary_large_image","twitter_title":"Edit Queries in Power BI for Customized Data Views -","twitter_description":"Discover how to edit queries in Power BI to transform, & filter data for accurate analysis, ensuring high-quality insights & optimized performance.","twitter_image":"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/10\/feature-ce659-200x200-1.jpg","twitter_misc":{"Written by":"admin","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi","url":"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi","name":"Edit Queries in Power BI for Customized Data Views -","isPartOf":{"@id":"http:\/\/localhost\/blog\/#website"},"datePublished":"2024-10-15T17:51:40+00:00","dateModified":"2025-11-13T08:55:56+00:00","author":{"@id":"http:\/\/localhost\/blog\/#\/schema\/person\/6aceeb7c948a3f66ff6439ce5c24a280"},"breadcrumb":{"@id":"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/chartexpo.com\/blog\/edit-queries-in-power-bi#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost\/blog"},{"@type":"ListItem","position":2,"name":"Edit Queries in Power BI for Customized Data Views"}]},{"@type":"WebSite","@id":"http:\/\/localhost\/blog\/#website","url":"http:\/\/localhost\/blog\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/localhost\/blog\/#\/schema\/person\/6aceeb7c948a3f66ff6439ce5c24a280","name":"admin","url":"https:\/\/chartexpo.com\/blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/41905"}],"collection":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/comments?post=41905"}],"version-history":[{"count":13,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/41905\/revisions"}],"predecessor-version":[{"id":55712,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/41905\/revisions\/55712"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/media\/41913"}],"wp:attachment":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/media?parent=41905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/categories?post=41905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/tags?post=41905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}