<?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 Calculated Columns: split by deliminator &amp;quot;value1 - value 2 - &amp;quot; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1524858#M29824</link>
    <description>&lt;P&gt;Good evening,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please help me with some nice clean DAX for each of the subsequent columns listed below?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;Michelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;RAW&lt;/U&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Split This&lt;/STRONG&gt;&lt;BR /&gt;Just one value&lt;BR /&gt;Sometimes - I have two&lt;BR /&gt;And when I am - very lucky - then I can have three&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;And I can also - have a blank row - like in the above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 19:25:44 GMT</pubDate>
    <dc:creator>michellepace</dc:creator>
    <dc:date>2020-11-30T19:25:44Z</dc:date>
    <item>
      <title>Calculated Columns: split by deliminator "value1 - value 2 - "</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1524858#M29824</link>
      <description>&lt;P&gt;Good evening,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please help me with some nice clean DAX for each of the subsequent columns listed below?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;Michelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;RAW&lt;/U&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Split This&lt;/STRONG&gt;&lt;BR /&gt;Just one value&lt;BR /&gt;Sometimes - I have two&lt;BR /&gt;And when I am - very lucky - then I can have three&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;And I can also - have a blank row - like in the above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 19:25:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1524858#M29824</guid>
      <dc:creator>michellepace</dc:creator>
      <dc:date>2020-11-30T19:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Columns: split by deliminator "value1 - value 2 - "</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1524934#M29827</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="133502" data-lia-user-login="michellepace" class="lia-mention lia-mention-user"&gt;michellepace&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is best done in Power Query. Just use the Split Column feature,&amp;nbsp; By delimiter, and choose "-" as delimiter&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 20:48:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1524934#M29827</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-30T20:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Columns: split by deliminator "value1 - value 2 - "</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1534617#M30144</link>
      <description>&lt;P&gt;Thankyou for your reply. Unfortunately I do not have the option of using power query. Only a calculated column via Dax&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 09:39:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1534617#M30144</guid>
      <dc:creator>michellepace</dc:creator>
      <dc:date>2020-12-06T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Columns: split by deliminator "value1 - value 2 - "</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1537117#M30209</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="133502" data-lia-user-login="michellepace" class="lia-mention lia-mention-user"&gt;michellepace&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try these calculated columns:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Value 1 = 
VAR _index1 = SEARCH("-", 'Table'[Split], 1, 0)
RETURN TRIM(IF(_index1 &amp;gt; 0, MID('Table'[Split], 1, _index1 - 1), 'Table'[Split]))

Value 2 = 
VAR _index1 = SEARCH("-", 'Table'[Split], 1, 0)
VAR _index2 = IF(_index1 &amp;gt; 0, SEARCH("-", 'Table'[Split], _index1 + 1, LEN('Table'[Split]) +1), 0)
RETURN TRIM(IF(_index2 &amp;gt; 0, MID('Table'[Split], _index1 + 1, _index2 - _index1 - 1), BLANK()))

Value 3 = 
VAR _index1 = SEARCH("-", 'Table'[Split], 1, 0)
VAR _index2 = IF(_index1 &amp;gt; 0, SEARCH("-", 'Table'[Split], _index1 + 1, 0), 0)
VAR _index3 = IF(_index2 &amp;gt; 0, SEARCH("-", 'Table'[Split], _index2, 0), 0)
RETURN TRIM(IF(_index3 &amp;gt; 0, MID('Table'[Split], _index2 + 1, LEN('Table'[Split]) - _index3), BLANK()))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 18:53:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Columns-split-by-deliminator-quot-value1-value-2-quot/m-p/1537117#M30209</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-12-07T18:53:43Z</dc:date>
    </item>
  </channel>
</rss>

