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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
yorick1973
New Member

Replace values in a multivalue column with other text WITHOUT transforming the data in the tables

I have a table with a column that has multiple values stored as numbers separated by commas.  How I can replace the numbers with designated text without transforming the data.  I have seen other posts with solutions using transform data.  Below is an example.

 

FILENUMGEOGRAPHIES
ABC182341001,1003,1004
ABC123461001,1002,1004
ABC342561002

 

The numerical values in GEOGRAPHIES are mapped as below:

1001 = West

1002 = Mountain

1003 = Central

1004 = East

 

I would like to show the table like below:

FILENUMGEOGRAPHIES
ABC18234West,Central,East
ABC12346West,Mountain,East
ABC34256Mountain
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @yorick1973 ,

Here are the steps you can follow:

1. Create calculated column.

GEOGRAPHIES_replace =
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE (
        SUBSTITUTE ('Table'[GEOGRAPHIES],"1001","West" ),
        "1002",
        "Mountain"
    ) 
    ,
    "1003",
    "Central"),
    "1004",
    "East"
)

2. Create calculated table.

Table 2 =
SUMMARIZE('Table','Table'[FILENUM],'Table'[GEOGRAPHIES_replace])

3. Result:

vyangliumsft_0-1653966119985.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @yorick1973 ,

Here are the steps you can follow:

1. Create calculated column.

GEOGRAPHIES_replace =
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE (
        SUBSTITUTE ('Table'[GEOGRAPHIES],"1001","West" ),
        "1002",
        "Mountain"
    ) 
    ,
    "1003",
    "Central"),
    "1004",
    "East"
)

2. Create calculated table.

Table 2 =
SUMMARIZE('Table','Table'[FILENUM],'Table'[GEOGRAPHIES_replace])

3. Result:

vyangliumsft_0-1653966119985.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@yorick1973 , without power query transformation, I doubt you can do

 

The only thing you do is use all list operation

this new column code, you can use that  transform current column

 

Text.Combine(List.ReplaceValue(List.ReplaceValue(List.ReplaceValue(List.ReplaceValue(
Text.Split(GEOGRAPHIES, ","), "1001","West"), "1002","Mountain"), "1003","Central"),"1004","East"),",")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors