I'm really new at PQ and am confused by its behavior.
I have the import done from the folder.
I would like to remove unneeded columns.
The first set to go would be any column with the word "NOPE" in the column header.
I viewed a youTube video here that explained how to do away with columns based on text in the header. I did that with the first set (NOPES). It worked, yay for me. So I set about to do it again with different junk columns but based on different header criteria. It did, it but it brought back the previous NOPES that I'd thought were gone.
I am seriously confused. There are hundreds of repeating junk columns in about 21 combined files. I thought I was making progress on weeding them out but.... now not so much.
Insight and advice always grateful, thank you for reading.
I have the import done from the folder.
I would like to remove unneeded columns.
The first set to go would be any column with the word "NOPE" in the column header.
I viewed a youTube video here that explained how to do away with columns based on text in the header. I did that with the first set (NOPES). It worked, yay for me. So I set about to do it again with different junk columns but based on different header criteria. It did, it but it brought back the previous NOPES that I'd thought were gone.
Code:
#"Removed Columns" = Table.RemoveColumns(#"Changed Type",List.Select(Table.ColumnNames(#"Changed Type"),each Text.Contains(_,"NOPE_"))),
#"Removed Columns1" = Table.RemoveColumns(#"Removed Columns",{"NOPE"}),
Custom1 = Table.RemoveColumns(#"Changed Type",List.Select(Table.ColumnNames(#"Changed Type"),each Text.Contains("BACK","BACKFILL")))
in
Custom1
I am seriously confused. There are hundreds of repeating junk columns in about 21 combined files. I thought I was making progress on weeding them out but.... now not so much.
Insight and advice always grateful, thank you for reading.