PowerBi 中的拆分列
I have been stuck in splitting column in PowerBi.
The below picture is the example of the data I would need to split.
In the qualification tab, I would want to seperate those details along with the dates to separate columns.
Do you think you can help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我一开始没有注意到所有数据都在一行中
所以...
右键单击“资格”列,拆分列...按分隔符...[x] --Custom--,然后进行自定义选择换行(通过单击该框并使用在框底部插入换行的特殊字符),对于高级选项,选择 [x] 行
这可以让你在不同的行上
右键单击资格柱、分割柱..通过分隔符 .. 选择或输入分隔符:选择 --custom-- 并输入 空格(
注意:在上面的步骤中,我的意思是实际使用两个字符 - 空格后跟括号
< /a>
右键单击新列“替换值”,然后将 ) 替换为任何内容
单击选择该列并转换...数据类型..日期
I didn't notice at first that all the data is in a single row
So...
Right click the Qualifications column, split column ... by delimiter... [x] --Custom--, and for the custom choose a line feed (by clicking in that box and using insert special character for line feed at the bottom of the box), for advanced options pick [x]rows
That gets you this, on different rows
Right click the qualifications column, split column .. by delimiter .. select or enter delimiter: choose --custom-- and enter space(
Note: In step above I mean to actually use two characters - a space followed by a parenthesis
Right click the new column, Replace Values, and replace ) with nothing
Click select that column and transform ... data type .. date
你没有表现出你想要的结果。特别是,如果您想保留周围的括号,则不会显示。
如果您确实想保留它们,则只需在高级编辑器中要进行拆分的位置插入此 M 代码即可在转换上进行拆分。
如果您想删除括号,则只需拆分
"("
并删除尾随的")"
You don't show what you want for a result. In particular you don't show if you want to retain the surrounding parentheses.
If you do want to retain them, then merely split on the transition by inserting this M-Code in the Advanced Editor in the place where you want to do the split.
If you want to remove the parentheses, then just split on the
"("
and remove the trailing")"