Forum Discussion
gonrodrigues
10 years agoHelper III
Delete columns with blank/null values
I'm completely new in Power BI and not a master in computers. I have a big DB and a lot of columns have 0 values or are simply blank. How can i delete them all without having to select one at a time?
Thanks!
- Unfortunately there is no button that will remove all columns from dataset that are empty. There is button to remove empty rows but not all empty columns. You will have to do them manually by selecting each column, right click, delete.
- Anonymous10 years ago
gonrodrigues Another option is to do this on the DB side. Just create a query instead of importing the whole table, and remove the column name from the query. Load only those columns you want.
5 Replies
- ankitpatiraCommunity ChampionUnfortunately there is no button that will remove all columns from dataset that are empty. There is button to remove empty rows but not all empty columns. You will have to do them manually by selecting each column, right click, delete.
- mheinsNew Member
There is a button to swap rows and columns, so you could do that, delete the empty rows(originally empty columns), then swap back
- gonrodriguesHelper III
That's painful.
Thanks!
- AnonymousNot applicable
gonrodrigues Another option is to do this on the DB side. Just create a query instead of importing the whole table, and remove the column name from the query. Load only those columns you want.