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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
vishy86
Post Patron
Post Patron

Remove unwanted rows

Hi,

 

I have created a sample data in which column Id has values like underscore (_), (null), (blank) etc. (refer rows 5 to 8 in attached file).

 

I understand there is an option "Remove Empty" which removes blank rows. In this case, row no. 5 will be removed. To remove the other unwanted rows, I will have to replace each of those values with a blank row and then use above option.

 

But when I select the column Id and navigate to Remove Rows -> Remove Blank Rows, none of the rows are removed.

How does the Remove Blank Rows option work?

 

Please explain using this same example and sample data. 

 

Unwanetd Values - Power Query.JPG

 

Thanks,

Vishy

2 ACCEPTED SOLUTIONS
Baskar
Resident Rockstar
Resident Rockstar

@vishy86

 

 

Add those two lines in your Power Query. 

 

Remove Non Numerics.PNG

Text1 = Table.SelectRows( Text, each [ID] = Text.Select([ID],{"a".."z","A".."Z","0".."9"} ) ),
#"Filtered Rows" = Table.SelectRows(Text1, each [ID] <> "")

 

After.PNGBefore.PNG

View solution in original post

Greg_Deckler
Super User
Super User

You should be able to click on the drop down arrow of a colum and remove values that you do not want (uncheck) and those rows should get filtered out.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

You should be able to click on the drop down arrow of a colum and remove values that you do not want (uncheck) and those rows should get filtered out.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Baskar
Resident Rockstar
Resident Rockstar

@vishy86

 

 

Add those two lines in your Power Query. 

 

Remove Non Numerics.PNG

Text1 = Table.SelectRows( Text, each [ID] = Text.Select([ID],{"a".."z","A".."Z","0".."9"} ) ),
#"Filtered Rows" = Table.SelectRows(Text1, each [ID] <> "")

 

After.PNGBefore.PNG

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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