Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hello,
I have a table in which all columns are in capital letters. For data presentation purposes, I want one of them to have only the first letter of each word capitalized. I could use the built-in function in PowerQuery Editor, which would produce the following step:
Table.TransformColumns(A, {{"B", Text.Proper, type text}})
Where A is the table and B is the column name.
The problem is that I need the capitalization to follow the settings of my culture (pt-BR), so some words should not be capitalized. Text.Proper has a "culture" argument that works for me, but Table.TransformColumns only accepts a "transformOperations" list of functions, which doesn't seem to support function arguments.
So how can I use the Text.Proper "culture" argument inside Table.TransformColumns?
Thanks in advance
Solved! Go to Solution.
Hi @EGobi ,
Instead of using Table.TransformColumns, you could use a modified Table.ReplaceValue, something like this:
Table.ReplaceValue(
A,
each [B],
each Text.Proper(_, "pt-BR"),
Replacer.ReplaceValue, // or Replacer.ReplaceText if this doesn't work
{"B"}
)
Pete
Proud to be a Datanaut!
Hi @EGobi ,
Instead of using Table.TransformColumns, you could use a modified Table.ReplaceValue, something like this:
Table.ReplaceValue(
A,
each [B],
each Text.Proper(_, "pt-BR"),
Replacer.ReplaceValue, // or Replacer.ReplaceText if this doesn't work
{"B"}
)
Pete
Proud to be a Datanaut!
Neat, it worked! Thanks!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |