Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I want to use the Table header value as the column name in a merge query I have (from a previous question)
#"Merged Columns" = Table.CombineColumns(#"Trimmed Text",mergeHeaders[headers],Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Merged")
I have tried replacing Merged with mergeHeaders[headers] but get the error
Expression.Error: We cannot convert a value of type List to type Text.
Details:
Value=[List]
Type=[Type]
I have also tried mergeHeaders[headers]{0} I get no error but the merge no longed outputs data
Thank you
Solved! Go to Solution.
Use this in place of mergeHeaders[headers]
Text.BetweenDelimiters("mergeHeaders[headers]","[","]")
Note - For this merge to work, you require at least 2 column names which exist in #"Trimmed Text". This result should appear in the place where you would place this. Refer the doc here - https://docs.microsoft.com/en-us/powerquery-m/table-combinecolumns
Use this in place of mergeHeaders[headers]
Text.BetweenDelimiters("mergeHeaders[headers]","[","]")
Note - For this merge to work, you require at least 2 column names which exist in #"Trimmed Text". This result should appear in the place where you would place this. Refer the doc here - https://docs.microsoft.com/en-us/powerquery-m/table-combinecolumns
Yes, that's great! Thank you again
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |