<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Replacer.ReplaceText in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960250#M57785</link>
    <description>&lt;LI-CODE lang="markup"&gt;#"Replaced Value" = Table.ReplaceValue(#"Sorted Rows", each [Holiday], each if [Date] = #date(2021, 4, 2) then "XXXXXXXXXX" else [Holiday], Replacer.ReplaceValue,{"Holiday"})&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 15 Jul 2021 15:10:28 GMT</pubDate>
    <dc:creator>CNENFRNL</dc:creator>
    <dc:date>2021-07-15T15:10:28Z</dc:date>
    <item>
      <title>Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1959858#M57774</link>
      <description>&lt;P&gt;I have no idea why this is not working.&amp;nbsp; I am trying to add a custom holiday to my date table.&lt;/P&gt;&lt;P&gt;I get no error code. It acts like it has repaced the value but the cell is empty rather than XXXXXXX. When I sort the "Holiday" column desc the date 2021,4,2 is at the top.&amp;nbsp; It just has no data in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#"Sorted Rows" = Table.Sort(#"Added Custom4",{{"Custom", Order.Descending}}),&lt;BR /&gt;#"Replaced Value" = Table.ReplaceValue(#"Sorted Rows", each [Holiday], each if [Date] = #date(2021, 4, 2) then "XXXXXXXXXX" else [Holiday], Replacer.ReplaceText,{"Holiday"})&lt;BR /&gt;in&lt;BR /&gt;#"Replaced Value"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 12:29:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1959858#M57774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960019#M57780</link>
      <description>&lt;P&gt;Try transforming the column--because keep in mind, if [Date] is type date, you can't replace it with the text "xxxxxxxx".&amp;nbsp; If it's a text column., you can't use #date(2021,4,2" as a comparison to the text.&amp;nbsp; Let's make it a text column so you can add the "XXXXXXXXXX".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#"Sorted Rows" = Table.Sort(#"Added Custom4",{{"Custom", Order.Descending}}),&lt;/P&gt;&lt;P&gt;Table.TransformColumnTypes(#"Sorted Rows", {{"Date", type text}}),&lt;BR /&gt;#"Replaced Value" = Table.TransformColumn(#"Added Custom4", {{"Holiday", each if [Date] = "4/2/2021" then&amp;nbsp;&lt;SPAN&gt;"XXXXXXXXXX" else [Date]}})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--Nate&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 13:36:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960019#M57780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960228#M57783</link>
      <description>&lt;P&gt;Thank you for your reply. The Date column is a date and the Holiday column is text.&amp;nbsp; I am not trying to change the values in the Date column I am trying to change the values in the Holiday column.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:02:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960228#M57783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T15:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960244#M57784</link>
      <description>&lt;P&gt;Oh OK!&amp;nbsp; In that case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#"Sorted Rows" = Table.Sort(#"Added Custom4",{{"Custom", Order.Descending}}),&lt;/P&gt;&lt;P&gt;#"Replaced Value" = Table.TransformColumn(#"Added Custom4", {{"Holiday", each if [Date] = #date(2021,4,2) then&amp;nbsp;&lt;SPAN&gt;"XXXXXXXXXX" else [Holiday]}})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--Nate&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:07:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960244#M57784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960250#M57785</link>
      <description>&lt;LI-CODE lang="markup"&gt;#"Replaced Value" = Table.ReplaceValue(#"Sorted Rows", each [Holiday], each if [Date] = #date(2021, 4, 2) then "XXXXXXXXXX" else [Holiday], Replacer.ReplaceValue,{"Holiday"})&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960250#M57785</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-07-15T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960256#M57787</link>
      <description>&lt;P&gt;I am not sure why this worked because it appears to be the exact same thing as I was doing but it works.&amp;nbsp; Thank You Very Much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:16:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960256#M57787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Replacer.ReplaceText</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960258#M57788</link>
      <description>&lt;P&gt;I am not sure why this worked because it appears to be the exact same thing as I was doing except it worked. Thank You So much&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Replacer-ReplaceText/m-p/1960258#M57788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T15:18:06Z</dc:date>
    </item>
  </channel>
</rss>

