<?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: Basket analysis - basket with same product category (more than 1) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/839234#M6325</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i apply this condition, i am getting no value for other transactions.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It should be like the following&amp;nbsp; (except against the fridge category it should show 0)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is my transactions for fridges :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would want to attach my pbix file , dont know how to do that. That would have been useful to understand the scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 00:40:28 GMT</pubDate>
    <dc:creator>gracejoshi</dc:creator>
    <dc:date>2019-11-07T00:40:28Z</dc:date>
    <item>
      <title>Basket analysis - basket with same product category (more than 1)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/830857#M5998</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen the usual pattern for Basket analysis (&lt;A href="https://www.daxpatterns.com/basket-analysis/" target="_blank"&gt;https://www.daxpatterns.com/basket-analysis/&lt;/A&gt;). And I am using the similar data model.&amp;nbsp; &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;Here is what I want :&lt;/P&gt;&lt;P&gt;When I select "Dishwasher" product category from [Product] table and [Filter Product], Only 1 transaction should qualify as [Basket with Both Products] i.e transation ID "xxx123".&amp;nbsp; At the moment with my current formula, I am getting 3 transactions intead of 1. Basically, if a basket contains same product more than once, that I want that to qualify and want to ignore other transaction where it exist just once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is my formula :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is how my result look like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I did look at&amp;nbsp;&lt;A href="https://www.daxpatterns.com/basket-analysis/" target="_blank"&gt;https://www.daxpatterns.com/basket-analysis/&lt;/A&gt;&amp;nbsp;post for excluding Same product selection. But that excludes even my "xxx123" transaction. and gives me blank if the same product is selected in Product and Filter Product table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 06:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/830857#M5998</guid>
      <dc:creator>gracejoshi</dc:creator>
      <dc:date>2019-10-29T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Basket analysis - basket with same product category (more than 1)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/831113#M6003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147395" data-lia-user-login="gracejoshi" class="lia-mention lia-mention-user"&gt;gracejoshi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding the below as an extra argument to your CALCULATETABLE statement.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FILTER( Sales, Sales[ProductCount] &amp;gt; 1 ) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;IMG src="https://static.licdn.com/scds/common/u/images/logos/linkedin/logo_linkedin_93x21_v2.png" border="0" alt="Mariusz Repczynski" /&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 09:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/831113#M6003</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2019-10-29T09:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Basket analysis - basket with same product category (more than 1)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/839234#M6325</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i apply this condition, i am getting no value for other transactions.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It should be like the following&amp;nbsp; (except against the fridge category it should show 0)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is my transactions for fridges :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would want to attach my pbix file , dont know how to do that. That would have been useful to understand the scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 00:40:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-analysis-basket-with-same-product-category-more-than-1/m-p/839234#M6325</guid>
      <dc:creator>gracejoshi</dc:creator>
      <dc:date>2019-11-07T00:40:28Z</dc:date>
    </item>
  </channel>
</rss>

