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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.