NEW! FREE 30 Minutes MS Excel - Working with Dates Course  Watch now 

Power BITutorials

Learn How to Replace Values in Power Query

1 Mins read

There is a cool feature of Power Query which is known as ‘Replace Values’ feature. As the name suggests, it can replace any value with the new value you provide into your data table. You may go through step by step procedure where our Power Query Training expert has explained the topics in a detailed manner with examples that will help you to understand the concepts better.

Power Query Helps In Replacing Values

To understand this feature in detail, let’s take an example.

We have a data set as shown in the steps below. We need to change the Country of a person as he has shifted from India to the U.S. Instead of changing the entire data table, we can directly make changes in the Power Query as explained in the steps below.

Step 1: Select the data for replacing

Select the columns of the values you want to replace. Here, we have selected the Country column as we want to replace the value ‘India’ as shown in the picture below.

BEFORE REPLACING DATA

Step 2: Select Replace Values option

To replace values in Power Query go to –

Transform > Replace Values button > Replace Values option

REPLACING VALUES

Step 3: Insert New Value

After you click on the Replace Values option, a window gets open where you can replace the value that you don’t want to appear in the data table as shown below.

Replace Values Window

Step 4: Close & Apply

When you click on OK in the Replace Value window, it will change the value ‘India’ to ‘U.S’ as shown in the below picture. To apply all the changes just click on the Close & Apply button.

AFTER REPLACING VALUES

You can acquire more knowledge:

Related posts
Power BITutorials

Opportunity Analysis Power BI Dashboard

1 Mins read
Information: A software company that has two sales channels: direct and partner. The sales manager created this dashboard to track opportunities and…
Power BITutorials

Procurement Analysis Power BI Dashboard

1 Mins read
Information: It analyzes a manufacturing company’s spending on vendors by category and location. we explore these areas: Who the top vendors are…
Power BITutorials

Retail Analysis Power BI Dashboard

1 Mins read
Information: It analyzes retail sales data of items sold across multiple stores and districts The metrics compare this year’s performance to last…