<?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 Both Items Total Sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296312#M22377</link>
    <description>I can't see the primary key (Product No) in the picture. I also can't see all the relationships to Basket Analysis (if there are any more than the ones shown). To do what you want, you have to have 2 relationships from Products to Basket Analysis: one to the first product, the other one to the other. One of them will be inactive. To calculate the amount for the first product you'll do nothing more than just return the sales amount [Total Sales]. For the other product, you'll need to use the USERELATIONSHIP function with some manipulation of filters on Products and Basket Analysis. This is not hard but you have to understand exactly what you want to do and remove the original filters.</description>
    <pubDate>Fri, 14 Aug 2020 11:56:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-14T11:56:43Z</dc:date>
    <item>
      <title>Basket Analysis Both Items Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296105#M22368</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Members,&lt;BR /&gt;&lt;BR /&gt;I Created Items basket table from python script named (Basket Analysis) through power query successfully to calculate (support,lift and confidence) this table display the basket of each two items and measure the strength of relation through (support,lift and confidence) columns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The table is Joined with Products table through the primary key (Product No) 1:m and of course products related to sales order (1:m),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The challange is I need to calculate the total sales of Both Items in the basket table (A,B) in all orders from table (sales) considering there is no relationship between (Basket analysis) and (Sales) Table, I created one measure to do this but it is not do it correctly :&lt;BR /&gt;&lt;BR /&gt;M2M Total Sales =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Total Sales],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Products,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE( COUNTROWS( 'Basket Analysis') ) &amp;gt; 0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;I appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Here is the Link of all resources.&lt;BR /&gt;&lt;A href="https://drive.google.com/drive/folders/1Voi-Wr3IvbTptVbVui6VDQ-llIohZTbb?usp=sharing" target="_blank" rel="nofollow noopener"&gt;https://drive.google.com/drive/folders/1Voi-Wr3IvbTptVbVui6VDQ-llIohZTbb?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 10:39:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296105#M22368</guid>
      <dc:creator>MAAbdullah_47</dc:creator>
      <dc:date>2020-08-14T10:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Basket Analysis Both Items Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296312#M22377</link>
      <description>I can't see the primary key (Product No) in the picture. I also can't see all the relationships to Basket Analysis (if there are any more than the ones shown). To do what you want, you have to have 2 relationships from Products to Basket Analysis: one to the first product, the other one to the other. One of them will be inactive. To calculate the amount for the first product you'll do nothing more than just return the sales amount [Total Sales]. For the other product, you'll need to use the USERELATIONSHIP function with some manipulation of filters on Products and Basket Analysis. This is not hard but you have to understand exactly what you want to do and remove the original filters.</description>
      <pubDate>Fri, 14 Aug 2020 11:56:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296312#M22377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Basket Analysis Both Items Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296868#M22391</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&amp;nbsp; Sorry The Primary Key is (Index) in Products table.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 16:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296868#M22391</guid>
      <dc:creator>MAAbdullah_47</dc:creator>
      <dc:date>2020-08-14T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Basket Analysis Both Items Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296875#M22392</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Target Itme P No is the foriegin key in (Basket Analysis) , I include the resources in the thread, For the second Item (Second Item P No) , For the Measure I Include it in the Thread, Cold you help me on what sort of Modification shall I do?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 16:18:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1296875#M22392</guid>
      <dc:creator>MAAbdullah_47</dc:creator>
      <dc:date>2020-08-14T16:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basket Analysis Both Items Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1298034#M22422</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You comment: "&lt;SPAN&gt;you have to have 2 relationships from Products to Basket Analysis: one to the first product, the other one to the other. One of them will be inactive."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did the Active Relationship BTW (Index from Products into Target Item P No from Basket analysis),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the Inactive Relationship BTW (Index from Products into Second Item P No from Basket analysis).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need your help to show me in the second (Inactive key) how to Use (USERELATIONSHIP&amp;nbsp;) with sales (Product forign key) on the absence of any relationship between both tables (Sales and Basket Analysis), (Basket Analysis Doesn't have primary key).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 13:59:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basket-Analysis-Both-Items-Total-Sales/m-p/1298034#M22422</guid>
      <dc:creator>MAAbdullah_47</dc:creator>
      <dc:date>2020-08-15T13:59:37Z</dc:date>
    </item>
  </channel>
</rss>

