I was creating a unique id for a column and wanted to concatenate the ascii numeric representations for the letters to the end of an existing id in powerquery.
Such as in this example
<tbody style="box-sizing: border-box;">
</tbody>
When I use '&' powerquery returns an error that it cannot use and with numbers. So this solution fails.
To get a working solution with slightly different but still unique answer I used '+'.
Just wondering though for reference how can I join them rather than having to add them?
Such as in this example
trainernumber | trainer_track | Name | working out | answer_id | ||
81483 | Randwick | Cummings | James | James Cummings | 81483 + 17 + 0 +13 | 8148317013 |
81483 | Menah | Cummings | James | James Cummings | ||
20602948 | Rosehill | Cummings | James | James Cummings | ||
20602948 | Agnes Banks/Hawkesbury | Cummings | James | James Cummings | ||
20602948 | Warwick Farm | Cummings | James | James Cummings | ||
20602948 | Agnes Banks | Cummings | James | James Cummings |
<tbody style="box-sizing: border-box;">
</tbody>
When I use '&' powerquery returns an error that it cannot use and with numbers. So this solution fails.
Code:
[trainernumber] & Character.ToNumber(Text.Start([trainertrack],1)) & Character.ToNumber(Text.Range([trainertrack],1,1)) & Character.ToNumber(Text.Range([trainertrack],2,1))
To get a working solution with slightly different but still unique answer I used '+'.
Code:
[trainernumber] + Character.ToNumber(Text.Start([trainertrack],1)) + Character.ToNumber(Text.Range([trainertrack],1,1)) + Character.ToNumber(Text.Range([trainertrack],2,1))
Just wondering though for reference how can I join them rather than having to add them?