<?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: Creating a new column with only a portion of another in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578386#M73900</link>
    <description>&lt;P&gt;Thank you, this is perfect!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 18:00:28 GMT</pubDate>
    <dc:creator>peterknowlton</dc:creator>
    <dc:date>2022-06-14T18:00:28Z</dc:date>
    <item>
      <title>Creating a new column with only a portion of another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578303#M73892</link>
      <description>&lt;P&gt;For example, one column has&lt;/P&gt;&lt;P&gt;01r01&lt;/P&gt;&lt;P&gt;02r10&lt;/P&gt;&lt;P&gt;05r1&lt;/P&gt;&lt;P&gt;07r9&lt;/P&gt;&lt;P&gt;and I want to create a column that contains only the numbers after the r. So for example,&lt;/P&gt;&lt;P&gt;01&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578303#M73892</guid>
      <dc:creator>peterknowlton</dc:creator>
      <dc:date>2022-06-14T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column with only a portion of another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578328#M73895</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="401109" data-lia-user-login="peterknowlton" class="lia-mention lia-mention-user"&gt;peterknowlton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;P&gt;MID ( tablename[Column], 4, LEN (&amp;nbsp;&lt;SPAN&gt;tablename[Column] ) - 3 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;unless it is more complex than the examples.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:36:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578328#M73895</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-14T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column with only a portion of another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578330#M73896</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected column CC =
VAR _length =
    LEN ( Data[ColumnA] )
VAR _locationofR =
    SEARCH ( "r", Data[ColumnA], 1 )
RETURN
    RIGHT ( Data[ColumnA], _length - _locationofR )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:37:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578330#M73896</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-06-14T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column with only a portion of another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578351#M73898</link>
      <description>&lt;P&gt;This is perfect, thank you! One last thing, if I want to include the "r" each time how do I do that?&lt;/P&gt;&lt;P&gt;So&amp;nbsp;&lt;/P&gt;&lt;P&gt;r01&lt;/P&gt;&lt;P&gt;r10&lt;/P&gt;&lt;P&gt;r1&lt;/P&gt;&lt;P&gt;r9&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578351#M73898</guid>
      <dc:creator>peterknowlton</dc:creator>
      <dc:date>2022-06-14T17:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column with only a portion of another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578379#M73899</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Please try the below for creating a calculated column for what you need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply put +1 at the very end of the DAX formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected column CC = 
VAR _length =
    LEN ( Data[ColumnA] )
VAR _locationofR =
    SEARCH ( "r", Data[ColumnA], 1 )
RETURN
    RIGHT ( Data[ColumnA], _length - _locationofR +1 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578379#M73899</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-06-14T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column with only a portion of another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578386#M73900</link>
      <description>&lt;P&gt;Thank you, this is perfect!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:00:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-with-only-a-portion-of-another/m-p/2578386#M73900</guid>
      <dc:creator>peterknowlton</dc:creator>
      <dc:date>2022-06-14T18:00:28Z</dc:date>
    </item>
  </channel>
</rss>

