Column to change value names

Lamda

New Member
Joined
Mar 28, 2014
Messages
35
Hey All,

So I have a simple column called Product and it has the values:

Honda 31J Accord LX Tint with spoiler
Toyota 555 Camry spoiler 4x4 XI
Ford 890 Focus blue leather CI

I want to create a short name or friendly name for these so I want to create a new column in PPivot using DAX to say set the new names to

Honda 311 LX
Toyota 555 XI
Ford 890 CI

I think it needs to be a calculate function that would say if Calculate(IF(Product = "Honda 31J Accord LX Tint with spoiler",(then set it to "Honda 311 LX") but I can't seem to figure out the formula for this.

Thoughts?

Thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You should do this in your source table ideally. If you can't, you could do the following.

1. create a new linked table in Excel. Add the current column and the new column in this table
2. load the new table to the data model and join the tables on the common current column. Current table on the many side of the relationship, new table on the one-side.
3. Bring the new column of data from the new table into the current table with a calculated column using RELATED().
 
Upvote 0

Forum statistics

Threads
1,224,118
Messages
6,176,483
Members
452,730
Latest member
palsmith

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