<?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 new column without selected values from original column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173831#M114499</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="402566" data-lia-user-login="AB174" class="lia-mention lia-mention-user"&gt;AB174&lt;/a&gt;&amp;nbsp;Sure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 = 
    VAR __Column1 = [Column1]
    VAR __Num = LEN(__Column1) - LEN(SUBSTITUTE(__Column1, ",", "")) + 1
    VAR __TableText = SUBSTITUTE(__Column1, ",", "|")
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(1, __Num, 1),
            "__Value", PATHITEM(__TableText, [Value])
        )
    VAR __Table1 = 
        ADDCOLUMNS(
            __Table,
            "__Num",
                VAR __Value = [__Value]
                VAR __Result = COUNTROWS(FILTER(__Table, [__Value] = __Value))
            RETURN
                __Result
        )
    VAR __Result = CONCATENATEX( FILTER( __Table1, [__Num] = 1 ), [__Value], ",")
RETURN
    __Result&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 05 Apr 2023 12:46:17 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-04-05T12:46:17Z</dc:date>
    <item>
      <title>Creating new column without selected values from original column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173802#M114496</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use DAX to remove the values in each row of this column that have multiples and then place the remaining values in a new column. E.g if 20 appears twice in a row then remove them both and give the remaining values in a seperate 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;P&gt;Alternate example:&lt;/P&gt;&lt;P&gt;Column 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Column 2&lt;/P&gt;&lt;P&gt;1,2,3,4,5,2,3,7,8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,4,5,7,8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would appreciate any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:38:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173802#M114496</guid>
      <dc:creator>AB174</dc:creator>
      <dc:date>2023-04-05T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new column without selected values from original column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173831#M114499</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="402566" data-lia-user-login="AB174" class="lia-mention lia-mention-user"&gt;AB174&lt;/a&gt;&amp;nbsp;Sure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 = 
    VAR __Column1 = [Column1]
    VAR __Num = LEN(__Column1) - LEN(SUBSTITUTE(__Column1, ",", "")) + 1
    VAR __TableText = SUBSTITUTE(__Column1, ",", "|")
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(1, __Num, 1),
            "__Value", PATHITEM(__TableText, [Value])
        )
    VAR __Table1 = 
        ADDCOLUMNS(
            __Table,
            "__Num",
                VAR __Value = [__Value]
                VAR __Result = COUNTROWS(FILTER(__Table, [__Value] = __Value))
            RETURN
                __Result
        )
    VAR __Result = CONCATENATEX( FILTER( __Table1, [__Num] = 1 ), [__Value], ",")
RETURN
    __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:46:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173831#M114499</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-04-05T12:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new column without selected values from original column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173886#M114504</link>
      <description>&lt;P&gt;Great! Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:57:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3173886#M114504</guid>
      <dc:creator>AB174</dc:creator>
      <dc:date>2023-04-05T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new column without selected values from original column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3174062#M114517</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thanks again for the formula. Apologies to bother again but is there a method to do this within power query? I've just realised i'm going to need to split the column by the delimiter so i can use a User Information list alongside it but currently can't because of this being a calculated column?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 14:25:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-new-column-without-selected-values-from-original-column/m-p/3174062#M114517</guid>
      <dc:creator>AB174</dc:creator>
      <dc:date>2023-04-05T14:25:32Z</dc:date>
    </item>
  </channel>
</rss>

