Different column into one Column

legato

New Member
Joined
Jun 4, 2013
Messages
13
I have a table with column:

table A
(int) (int) (int) (int)
PK_g cost FK_a FK_b
123 5 23 55
454 5 234 58

I need to create a superkey as an additional column in the table A by using DAX code. How should I do it? It would be a calculated column.
The result should be by combining PK_g and FK_a.

New requested column named:

superkey
--------
12323
454234


Info:
- The Superkey will be acting as a unique identifier for each row in tabular.
- The DAX code take place in SSAS tabular.
- I don't want the code to be formatted with this context. If value is 100123, would like to be "100123" not "100 123".
- Can the value be output as int or text?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You can and should concatenate both values.

You can use CONCATENATE function, the & operator, or some numerical expression, if you want your superkey to be an int - I do not see any obvious advantage to having an integer key though.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top