PowerQuery: How can I concatenate MULTIPLE grouped values

依然范特西╮ 提交于 2019-12-24 11:37:42

问题


Very similar to this, and I would comment to ask @marc-pincince but I don't have the reputation require.

Would this be adaptable for 3 columns of data? I have column A, B, C.

  • A = ID
  • B = Award
  • C = Year

What I need is to have new column A which groups all the ID's and then new column B which shows Award Year, Award Year, Award Year, Award Year , etc..

I tried using The Custom Column using =[AllData][Award][Year] Also tried using =[AllData]([Award]+[Year])

Both of these result in errors. I was able to get [AllData][Award] and [AllData][Year] to work seperately.

Do you have any ideas?

Thanks, Jake


回答1:


You'll need to create a column that concatenates the Award and Year together. To do this, make sure both of those columns are a text data type and then create a custom column [AwardYear] using the formula = [Award] & " " & [Year].

Once you do that, you can follow the same steps as in the other question, except you'll use [AllData][AwardYear] for your custom column.



来源:https://stackoverflow.com/questions/47783240/powerquery-how-can-i-concatenate-multiple-grouped-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!