Created
April 2, 2018 15:27
-
-
Save nsuvorov83/e9e657f37919f0f94cfb3e84e9665535 to your computer and use it in GitHub Desktop.
PowerQuery renames all columns with answers except a column "Question" to range "AnswerN". Used to anonymise results of survey.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let | |
| Source = Table1, | |
| Transformed = Table.TransformColumnNames(Source, each if Text.Contains(_,"Question") then _ else Text.Replace(_, _, "Answer")) | |
| in | |
| Transformed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment