Forum Discussion
Darko_Giac
7 years agoHelper II
Cleaning Cases in Power Query
Hi all, I'm currently working with a table that I have set up to refresh by connecting power query to a folder that the raw data are in. I'm looking for a way to clean the data within power q...
edhans
7 years agoCommunity Champion
You could do it a few different ways. Here are 2.
- See this article on writing a custom function in Power Query to emulate the SWITCH() function that DAX has. For a few changes. this would be fine. For dozens or hundreds, this would be a pain.
- Create a correction table, then merge it with your original table. If a corrected gender exists, use it, otherwise use the source gender. See my file attached. You should be able to see how I added the correction table then did the merge. This would be best for a lot of changes.