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
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
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.