Forum Discussion
cosminc
Post Partisan
7 years agoreplace error
Hi all,
i have a data base (excel) in which i need to replace errors with 0 - all base;
on future refreshments the data base will have new columns and i need now to set up this replacement for all base variable; otherwise for future columns the issue will remain.
Thanks!
Cosmin
I guess there is just a tiny "#" missing in step "Table_without_error":
let Source = Excel.Workbook(File.Contents("C:\Users\coscirnu\Desktop\lucru\Brand_Tracker\Sursa\All_Categories_All_Waves_Labels.xlsx"), null, true), All_Categories_All_Waves_Labels_Sheet = Source{[Item="All_Categories_All_Waves_Labels",Kind="Sheet"]}[Data], Table_without_error = Table.ReplaceErrorValues(#"All_Categories_All_Waves_Labels_Sheet", List.Transform(Table.ColumnNames("All_Categories_All_Waves_Labels_Sheet"), each {_, 0})) in Table_without_error
6 Replies
- Greg_Deckler
Community Champion
You can use the replace errors functionality of the Query Editor to replace errors with 0. For future columns, that's tricky, perhaps ImkeF has a suggestion for that.
- cosminc
Post Partisan
ok thanks
now i have almost 1500 columns which farther there are unpivoted
an automatically solution would be wonderfull