<?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: Query Editor - Replacing values in text string in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/969395#M11545</link>
    <description>&lt;P&gt;Thank you for the support and quick reply, Pravin.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 16:03:54 GMT</pubDate>
    <dc:creator>1up</dc:creator>
    <dc:date>2020-03-11T16:03:54Z</dc:date>
    <item>
      <title>Query Editor - Replacing values in text string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/968375#M11522</link>
      <description>&lt;P&gt;Hello, I am trying to replace a text substring in a column, ideally directly in the Query Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's call the column 'YearMonth', fields look like this: "202001", "201912", etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to replace the two last positions of the text strings where "01" should become "Jan", "02" become "Feb", "03" become "Mar" etc. I tried to do so with the "right"-function in combination with an if-statement. PowerBi prompts an error message for the if-statement not being allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. In the meantime I did a manual work-around in the source file, however would like to skip that step for the future.&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 07:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/968375#M11522</guid>
      <dc:creator>1up</dc:creator>
      <dc:date>2020-03-11T07:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query Editor - Replacing values in text string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/968427#M11523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202416" data-lia-user-login="1up" class="lia-mention lia-mention-user"&gt;1up&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this monster custom column&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Text.Combine({Text.Range([Date],0,4),Text.Range(Date.MonthName(#date(Number.FromText(Text.Range([Date],0,4)),Number.FromText(Text.Range([Date],4,2)),1)),0,3)})&lt;/LI-CODE&gt;
&lt;P&gt;but be sure that [Date] column has a Text format before add new column step&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/968427#M11523</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-11T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query Editor - Replacing values in text string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/968585#M11527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202416" data-lia-user-login="1up" class="lia-mention lia-mention-user"&gt;1up&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create custome column&lt;/P&gt;&lt;P&gt;=Text.Combine({Text.Middle(Text.From([YearMonth]),0,4),Text.Middle(Date.MonthName(#date(2020,Number.FromText(Text.Middle(Text.From([YearMonth]),4,2)),01)),0,3)})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YearMonth column is of Int.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/968585#M11527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-11T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query Editor - Replacing values in text string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/969392#M11544</link>
      <description>&lt;P&gt;Thanks a kudos for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:03:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/969392#M11544</guid>
      <dc:creator>1up</dc:creator>
      <dc:date>2020-03-11T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Query Editor - Replacing values in text string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/969395#M11545</link>
      <description>&lt;P&gt;Thank you for the support and quick reply, Pravin.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-Editor-Replacing-values-in-text-string/m-p/969395#M11545</guid>
      <dc:creator>1up</dc:creator>
      <dc:date>2020-03-11T16:03:54Z</dc:date>
    </item>
  </channel>
</rss>

