<?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: Create new table with distinct values and filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475664#M28080</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","C"}) &amp;amp;&amp;amp; not(isblank(ItemPackage[SKU]))), ItemPackage[SKU],ItemPackage[PackageDescription],ItemPackage[Brand Name])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","C"}) &amp;amp;&amp;amp; not(isblank(ItemPackage[SKU]))), ItemPackage[SKU],ItemPackage[PackageDescription]."Brand Name",max(ItemPackage[Brand Name]))&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 03:22:24 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-11-05T03:22:24Z</dc:date>
    <item>
      <title>Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475653#M28079</link>
      <description>&lt;P&gt;I want to create a new table that contain a distinct value of SKU. However, when I try with filters, the distinct values can not comply with the DAX code so I don't know where should I put the distinct code. Here is my code, basically I need the distinct values of SKU along with the brands and their descriptions. I also want to apply the filters where the SKU code must not start with "S", "O" and list of SKU with condition (brand&amp;lt;&amp;gt;blank()&amp;amp;&amp;amp;left(sku,1)="C-")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FILTER(SUMMARIZECOLUMNS(ItemPackage[SKU],ItemPackage[PackageDescription],ItemPackage[Brand Name]),LEFT(ItemPackage[SKU],1)&amp;lt;&amp;gt;"S"&amp;amp;&amp;amp;LEFT(ItemPackage[SKU],1)&amp;lt;&amp;gt;"O"&amp;amp;&amp;amp;(ItemPackage[Brand Name]&amp;lt;&amp;gt;BLANK()&amp;amp;&amp;amp;LEFT(ItemPackage[SKU],1)="C")))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 03:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475653#M28079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-05T03:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475664#M28080</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","C"}) &amp;amp;&amp;amp; not(isblank(ItemPackage[SKU]))), ItemPackage[SKU],ItemPackage[PackageDescription],ItemPackage[Brand Name])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","C"}) &amp;amp;&amp;amp; not(isblank(ItemPackage[SKU]))), ItemPackage[SKU],ItemPackage[PackageDescription]."Brand Name",max(ItemPackage[Brand Name]))&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 03:22:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475664#M28080</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-05T03:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475695#M28081</link>
      <description>&lt;P&gt;Thank you for taking your time to answer my question but this will make the SKU appear twice/more than once (not distinct) if the descriptions are not same. I need the SKU to be distinct regardless of the description.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 03:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475695#M28081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-05T03:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475831#M28082</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , try like&lt;/P&gt;
&lt;P&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","C"}) &amp;amp;&amp;amp; not(isblank(ItemPackage[SKU]))), ItemPackage[SKU],"PackageDescription" ,max(ItemPackage[PackageDescription]),"Brand Name",max(ItemPackage[Brand Name]))&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 06:13:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1475831#M28082</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-05T06:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1476025#M28095</link>
      <description>&lt;P&gt;What if I need to add more condition that check 2 fields? The SKU that starts with C and brand that is blank, need to be removed. The additional condition is the same as this LEFT(ItemPackage[SKU],1)=2 &amp;amp;&amp;amp; ItemPackage[Brand Name]&amp;lt;&amp;gt;BLANK() . I tried this code but turns out it delete all of the rows that starts with other codes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","P","M"}) &amp;amp;&amp;amp; (LEFT(ItemPackage[SKU],1) in {"C"} &amp;amp;&amp;amp; ItemPackage[Brand Name]&amp;lt;&amp;gt;BLANK())&amp;amp;&amp;amp; NOT(CONTAINSSTRING(ItemPackage[PackageDescription],"Do not use")) &amp;amp;&amp;amp; NOT(CONTAINSSTRING(ItemPackage[PackageDescription],"OBSOLETE"))), ItemPackage[SKU],"PackageDescription" ,max(ItemPackage[PackageDescription]),"Brand Name",max(ItemPackage[Brand Name]))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Nov 2020 07:59:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1476025#M28095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-05T07:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1476164#M28102</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Seem fine. Try with one change&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUMMARIZE(FILTER(ItemPackage, not(LEFT(ItemPackage[SKU],1) in {"S","O","P","M"}) &amp;amp;&amp;amp; (LEFT(ItemPackage[SKU],1) in {"C"} &amp;amp;&amp;amp; not(isblank(ItemPackage[Brand Name])))&amp;amp;&amp;amp; NOT(CONTAINSSTRING(ItemPackage[PackageDescription],"Do not use")) &amp;amp;&amp;amp; NOT(CONTAINSSTRING(ItemPackage[PackageDescription],"OBSOLETE"))), ItemPackage[SKU],"PackageDescription" ,max(ItemPackage[PackageDescription]),"Brand Name",max(ItemPackage[Brand Name]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remove filter one by one check which one is causing this&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 08:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1476164#M28102</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-05T08:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1476219#M28103</link>
      <description>&lt;P&gt;Still. I'm supposed to have more than 9000 rows and now only left with 1000 rows. Other codes are removed like SKU that starts with B&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 09:04:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1476219#M28103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-05T09:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1477890#M28160</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 02:13:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1477890#M28160</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-06T02:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table with distinct values and filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1478115#M28163</link>
      <description>&lt;P&gt;I sent you a private message. Or do you have any suggestion for me to give you the sample data? Seems like I can't paste the data here&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 04:47:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-new-table-with-distinct-values-and-filters/m-p/1478115#M28163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-06T04:47:35Z</dc:date>
    </item>
  </channel>
</rss>

