<?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: Remove Duplicate values without deleting a row in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3086811#M41317</link>
    <description>&lt;P&gt;Does it have to be in DAX or would Power Query work too?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WctRxUorVAdIQUgdGB+gEwFluSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Industry = _t]),
    #"Replaced Value" = Table.ReplaceValue(Source,each [Industry],each Text.Combine(List.Distinct(Text.Split([Industry],",")),","),Replacer.ReplaceValue,{"Industry"})
in
    #"Replaced Value"&lt;/LI-CODE&gt;
&lt;P&gt;How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done".&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 00:00:07 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-02-20T00:00:07Z</dc:date>
    <item>
      <title>Remove Duplicate values without deleting a row</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3084443#M41293</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to remove the duplicate values in a row without deleting the row. For example, in third row output should be "A" only instead of "A,A".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying with this expression&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CONCATENATEX&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;('Organization Detail'[Industry]),'Organization Detail'[Industry],&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Industry&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A,B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A,A&lt;/P&gt;&lt;P&gt;A,P,P&lt;/P&gt;&lt;P&gt;A,P,F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OutPut&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A,B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A,P&lt;/P&gt;&lt;P&gt;A,P,F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 05:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3084443#M41293</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2023-02-17T05:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate values without deleting a row</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3086811#M41317</link>
      <description>&lt;P&gt;Does it have to be in DAX or would Power Query work too?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WctRxUorVAdIQUgdGB+gEwFluSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Industry = _t]),
    #"Replaced Value" = Table.ReplaceValue(Source,each [Industry],each Text.Combine(List.Distinct(Text.Split([Industry],",")),","),Replacer.ReplaceValue,{"Industry"})
in
    #"Replaced Value"&lt;/LI-CODE&gt;
&lt;P&gt;How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done".&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 00:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3086811#M41317</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-02-20T00:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate values without deleting a row</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3087573#M41328</link>
      <description>&lt;P&gt;Thank you. It worked&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:39:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-Duplicate-values-without-deleting-a-row/m-p/3087573#M41328</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2023-02-20T09:39:26Z</dc:date>
    </item>
  </channel>
</rss>

