cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jracer007 Member
Member

Replace text

Hello community,

How can I replace the texts in column A with the texts in column C in Power Desktop?


Opera Instantánea_2017-12-27_163601_docs.google.com.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

Re: Replace text

click on edit query, and then select advanced editor, copy and paste text from advanced editor and I will add the step for you.






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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

7 REPLIES 7
Super User IV
Super User IV

Re: Replace text

do you want to replace text in col A only when col a is blank?






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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





jracer007 Member
Member

Re: Replace text

No, all text

Super User IV
Super User IV

Re: Replace text

goto edity query->advanced editor and add following line before "in" and make sure to add comma (",") on existing last step of the query

 

#"Replaced Value" = Table.ReplaceValue(#"<your last query step here>",each [Col A], each [Col C],Replacer.ReplaceValue,{"Col A"})

 

Assuing this is the last step in your query, replace last line in query query after "in" with this

 

#"Replaced Value"

 

 

 






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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





jracer007 Member
Member

Re: Replace text

Could you send me pictures please?

Super User IV
Super User IV

Re: Replace text

click on edit query, and then select advanced editor, copy and paste text from advanced editor and I will add the step for you.






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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

maitreyee Occasional Visitor
Occasional Visitor

Re: Replace text

i have come across the same issue can u help me out 

for this i am not geeting wat is the error

let
Source = Access.Database(File.Contents("C:\DAT207x\PowerBI.accdb")),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each [Date] > #date(1999, 12, 31))
in
#"Filtered Rows"

Super User IV
Super User IV

Re: Replace text

@maitreyeeat what step you are getting the error. What is the error?






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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors