Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Hell-1931
Helper II
Helper II

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

 

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.