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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Replace Values in Power BI for display purposes .. not backend data source -

I have a column name "Team" with several values:

 

USIT Domain 1

USIT Domain 2 .. etc.

 

My customer asked me to change the names to the following for a PBI report:

 

Domain 1,

Domain 2 ..etc.

 

I do not want to change the backend data source , just the values in the Power BI table . .is this possible? I've tried to  do "Replace Values" but it does not work and removes my data .from the report.

 

Thank you.

1 ACCEPTED SOLUTION

If you want to remove the first 4 alphabets then use the below formula as a calculated column.

RenamedTeam= right(Company[team],len(Company[team])-5)

Regards,

Atma.

View solution in original post

6 REPLIES 6
mahenkj2
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Can you please post an example how replace value does not work. Even if it does not work, we can tweak further few things as may be needed. Pls try to give more detail, some sample data and scenario where it does not work would be much helpful.

 

Hope it helps.

tamerj1
Super User
Super User

@Anonymous 

This possible only if you are not slicing by this column. You can use measure for example:

MID (

SELECTEDVALUE ( TableName[ColumnName] ),

8,

LEN ( SELECTEDVALUE ( TableName[ColumnName] ) - 8 

)

normally you should use variables to avoid multiple evaluations of the same expression 

Anonymous
Not applicable

Thank you for replying.  Can you give me the example using one of my values:

 

Table: Company

Column: Team

Current Value: USIT Domain 1

New Value: Domain 1

 

I see your selected statement but do not know the syntax for the value change?

 

Much appreciated!

@Anonymous 
I have no idea why I used "8". However, you can use the following
1.png

If you want to remove the first 4 alphabets then use the below formula as a calculated column.

RenamedTeam= right(Company[team],len(Company[team])-5)

Regards,

Atma.

Hi @Anonymous  sorry to disturb you, If you find this as a solution can you mark the reply as a solution,

Regards,

Atma.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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