Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Mituka
New Member

Deleting certain values in a column and shifting row data from right to left

Hello All

 

I am quite new to power query editor and have a challenge with my data. I have some data logs I retrieve from the web that are comma separated values. Once imported to PowerBI some rows are not aligned correctly due to a comma separating some phone models. See the screenshot of what I mean in row 40 and 42.

I would like to delete any number values in the isMobile column and shift the contents on the RIGHT to the LEFT. The isMobile column has to contain only the True or False values but unfortunately, the logs are not consistent on particular phone models (Apple). Anyone know how to go about this in power query editor. I have previously had to do this manually or with macros in excel. However, I need power BI to automatically do this after importing realtime data.

 

 

pbi.PNG

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Mituka

 

You may try to use 'Append Queries' and 'Text Filters' in Query Editor. Show the sample file as below:

https://www.dropbox.com/s/2czwvohjmkbl96l/Deleting%20certain%20values%20in%20a%20column%20and%20shif...

First, Remove the 'Column1' in Table.

1.png

 

Second, Copy the table as Table(2) and filter the table(2) and rename the columns as below:

1.png

 

1.png

 

Last, Append the Table Query and Table(2) Query as Append Table. Then filter again to get the table as requested.

3.png1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Mituka

 

You may try to use 'Append Queries' and 'Text Filters' in Query Editor. Show the sample file as below:

https://www.dropbox.com/s/2czwvohjmkbl96l/Deleting%20certain%20values%20in%20a%20column%20and%20shif...

First, Remove the 'Column1' in Table.

1.png

 

Second, Copy the table as Table(2) and filter the table(2) and rename the columns as below:

1.png

 

1.png

 

Last, Append the Table Query and Table(2) Query as Append Table. Then filter again to get the table as requested.

3.png1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.