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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
acerNZ
Helper III
Helper III

Multiple queries on custom column ?

Hi Experts,

Sorry if the subject is misleading

I have a custom column with the following  Step1:

= Table.TransformColumnTypes(#"Added Custom",{{"Postcode", type text}})

 

The out is basically postal address, but there are some "," which I want to replace with " " I am guessing I have to use the following function 

Text.Replace(text as nullable text, old as text, new as text) as nullable text

Is this way ?

 Text.Replace(#"Added Custom", ",", " ") 

This is what power BI shows, when I did that separately  Step2:

= Table.ReplaceValue(#"Changed Type",",","",Replacer.ReplaceText,{"Full Address"})

 Please can you help me to combine step1 and step2 with one step ? Is that possible?

Thank you

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @acerNZ 

Why the need to do it as 1 step?  Just curious.

Try this

 

= Table.ReplaceValue(Table.TransformColumnTypes(#"Added Custom",{{"Postcode", type text}}),",","",Replacer.ReplaceText,{"Full Address"})

 

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
acerNZ
Helper III
Helper III

Hi @PhilipTreacy 

Thanks a lot. Yes it did work and apologies, did not notice there was a solution next line, I realized this just now.

PhilipTreacy
Super User
Super User

Hi @acerNZ 

So did my code work for you?

regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @acerNZ 

Why the need to do it as 1 step?  Just curious.

Try this

 

= Table.ReplaceValue(Table.TransformColumnTypes(#"Added Custom",{{"Postcode", type text}}),",","",Replacer.ReplaceText,{"Full Address"})

 

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thank you @PhilipTreacy  It is just to concatenate to form full address as the columns were split up ( house, street, region, state, zip code, etc). I was about to to extend the logic of merging queries to a step prior with concatenation as well.  Best Regards

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.