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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jitpbi
Post Patron
Post Patron

replace column values using dax

Hi,

 

Is it possible to replace column values using dax (not using power query/tranform data option) for the following column:

 

Existing ValuesNew Values
ABC11
ABC22
ABC33
ABC44
ABC55
ABC66
ABC77
ABC88
ABC99
ABC1010
ABC1111
ABC1212

 

Please suggest how to do this.

 

Thanks

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@jitpbi ,

Create new Column using below DAX:

New Column = MID(Tbl2[Existing Value],4,LEN(Tbl2[Existing Value]))
Then make this column as Whole number as per the below Screen shot:
Capture.PNG
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @jitpbi 

It is not supported to replace column values with DAX, but you can create a new column with DAX and hide the old column in report view. Right click the old column and check Hide in report view.

New Values = RIGHT('Table'[Existing Values],LEN('Table'[Existing Values])-3)

020801.jpg

Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

Tahreem24
Super User
Super User

@jitpbi ,

Create new Column using below DAX:

New Column = MID(Tbl2[Existing Value],4,LEN(Tbl2[Existing Value]))
Then make this column as Whole number as per the below Screen shot:
Capture.PNG
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.