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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
krypto6969
Helper II
Helper II

Friendly names - How to sub out data value with a more readable value?

Hi 

I have a SQL query based power bi dash where one of the values is a SQL job. Unfortunatley the SQL job is described like this:

 

krypto6969_0-1672336615969.png

 

I would like to swap out the text values in the grid that starts with 'SQL Agent - TSQL Job Step 546B1544-9BC0-48B8-956E-6B797633E5B2' with the text value - 'TSQL JOB 'FREIENDLY JOB NAME' .

 

Do I need to create a lookup table to do this? Or is there a way to do a translate for the 20 or so values - iif text = 'TSQL JOB 545B..' set value to 'TSQL FRIENDLY JOB NAME....' 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @krypto6969 ,

 

You can use SUBSTITUTE function with similar DAX formula as below.

= SUBSTITUTE([program_name], "SQL Agent - TSQL Job Step 546B1544-9BC0-48B8-956E-6B797633E5B2", "TSQL JOB 'FREIENDLY JOB NAME")  

You can also replace values in Power Query Editor.

Replace values (Power Query) - Microsoft Support

If you want to bulk replace in Power Query, please refer to

Bulk Find And Replace In Power Query | How To Excel

 

Best Regards,

Stephen Tao

 

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 @krypto6969 ,

 

You can use SUBSTITUTE function with similar DAX formula as below.

= SUBSTITUTE([program_name], "SQL Agent - TSQL Job Step 546B1544-9BC0-48B8-956E-6B797633E5B2", "TSQL JOB 'FREIENDLY JOB NAME")  

You can also replace values in Power Query Editor.

Replace values (Power Query) - Microsoft Support

If you want to bulk replace in Power Query, please refer to

Bulk Find And Replace In Power Query | How To Excel

 

Best Regards,

Stephen Tao

 

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

 

Nathaniel_C
Community Champion
Community Champion

Hi @krypto6969 ,
If I understand what you are asking, you can go to Power Query - Transform tab - Find and Replace as in the picture below.

Nathaniel_C_0-1672339339433.png

or you can go to Add a Column tab and select conditional column as below.

Nathaniel_C_1-1672339499193.png

 

Or you can add a table with the friendly names and use the LOOKUPVALUE() function.

 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors