cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hell-1931
Frequent Visitor

Replacing data in the field with the new value in Power BI Desktop

Hi,

I am re-building Data Model in Power BI Desktop

I have [City] text type field, in ClientsDetails table (8K records), like this:

Capture.JPG

After I'll create a dimension table:

City

city_id  city_name

1          Mt View

2          San Jose

3          Santa Barbara

4          Redwood City 

5          South San Francisco

 

I will need to rename [city] to [city_id] and replace text values to numeric in the ClientDetails table, as

city

2

3

1

4

5

2

2

 

Is there any way to do this in Power BI Desktop?

Creating a new [city_id] column, perhaps? Using DAX language?

 

Please, advice!

Thanks, as always

 

 

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors