<?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 Market Basket Analysis - Bulk Search in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Market-Basket-Analysis-Bulk-Search/m-p/3981060#M1098</link>
    <description>&lt;P&gt;I was assigned to analyze a sales report and conduct a basket analysis for inventory management to discontinue some products. This experience transformed how I think about data and my approach to problem-solving.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Learn&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/archive/msdn-magazine/2018/december/artificially-intelligent-market-basket-analysis?WT.mc_id=%3Fwt.mc_id%3Dstudentamb_357518#market-basket-analysis-1" target="_self" rel="nofollow noreferrer"&gt;Market Basket Analysis&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/data-mining/microsoft-association-algorithm-technical-reference?view=asallproducts-allversions&amp;amp;WT.mc_id=%3Fwt.mc_id%3DC8943538E441B762" target="_self" rel="nofollow noreferrer"&gt;Association Algorithm Techniques&lt;/A&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/data-mining/browse-a-model-using-the-microsoft-association-rules-viewer?view=asallproducts-allversions&amp;amp;WT.mc_id=%3Fwt.mc_id%3DC8943538E441B762#BKMK_ViewerTabs" target="_self" rel="nofollow noreferrer"&gt;Association Rules Viewer&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Useful Resource&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.youtube.com/watch?v=3OlZuXH9Y_g&amp;amp;t=410s" target="_self" rel="nofollow noreferrer"&gt;The Knowledge Bank by obviEnce&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=Wc08K6IWgIM" target="_blank" rel="nofollow noopener noreferrer"&gt;SQLBI&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=yzDGvZEtYdQ" target="_blank" rel="nofollow noopener noreferrer"&gt;ViSIT&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selection Customers = 
CALCULATE ([Unique Customers],
TREATAS(VALUES('SelectedItem'[ITEM]), 'Sales Line'[Item]))
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Basket Analysis = 
VAR v1 = SELECTEDVALUE('SelectedItem'[ITEM])  
VAR v2 = SELECTEDVALUE('GeneralBasket'[ITEM]) 
VAR V3 = SELECTEDVALUE('AnalysisType'[Type])  
VAR v4 =  
SUMMARIZE(FILTER('Sales Line',  
RELATED('Sales Line -Duplicate'[Item]) = v1),'Sales Line'[Order #])

VAR v5 = SUMMARIZE(v4,
'Sales Line'[Order #],
"Basket" , CONCATENATEX(RELATEDTABLE('Sales Line'), 'Sales Line'[Item], "|")
)
VAR v6 = SUMX(v4,1)
VAR v7 = SUMX( v5, IF(PATHCONTAINS([Basket], v2),1, BLANK()))
RETURN 
SWITCH(TRUE(), 
v1 &amp;lt;&amp;gt; v2 &amp;amp;&amp;amp; V3 = "% Second Product is Purchased with First",     DIVIDE( v7,v6, BLANK() ),
v1 &amp;lt;&amp;gt; v2 &amp;amp;&amp;amp; V3 = "Count of Shared Baskets", v7,
v1 &amp;lt;&amp;gt; v2 &amp;amp;&amp;amp; V3 = "count of first Product Purchase", v6,
BLANK () )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiMDgyNDlkNjAtZGRjZS00NjE0LWEwZDktMTRkMWQwYWFjNTBiIiwidCI6IjNlMjFhMTFlLTc3MDctNDdmOC1iMzRhLTc5YTQ2YTQ0ZTk5MyIsImMiOjF9&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 13:50:05 GMT</pubDate>
    <dc:creator>DallasBaba</dc:creator>
    <dc:date>2024-06-18T13:50:05Z</dc:date>
    <item>
      <title>Market Basket Analysis - Bulk Search</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Market-Basket-Analysis-Bulk-Search/m-p/3981060#M1098</link>
      <description>&lt;P&gt;I was assigned to analyze a sales report and conduct a basket analysis for inventory management to discontinue some products. This experience transformed how I think about data and my approach to problem-solving.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Learn&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/archive/msdn-magazine/2018/december/artificially-intelligent-market-basket-analysis?WT.mc_id=%3Fwt.mc_id%3Dstudentamb_357518#market-basket-analysis-1" target="_self" rel="nofollow noreferrer"&gt;Market Basket Analysis&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/data-mining/microsoft-association-algorithm-technical-reference?view=asallproducts-allversions&amp;amp;WT.mc_id=%3Fwt.mc_id%3DC8943538E441B762" target="_self" rel="nofollow noreferrer"&gt;Association Algorithm Techniques&lt;/A&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/data-mining/browse-a-model-using-the-microsoft-association-rules-viewer?view=asallproducts-allversions&amp;amp;WT.mc_id=%3Fwt.mc_id%3DC8943538E441B762#BKMK_ViewerTabs" target="_self" rel="nofollow noreferrer"&gt;Association Rules Viewer&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Useful Resource&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.youtube.com/watch?v=3OlZuXH9Y_g&amp;amp;t=410s" target="_self" rel="nofollow noreferrer"&gt;The Knowledge Bank by obviEnce&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=Wc08K6IWgIM" target="_blank" rel="nofollow noopener noreferrer"&gt;SQLBI&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=yzDGvZEtYdQ" target="_blank" rel="nofollow noopener noreferrer"&gt;ViSIT&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selection Customers = 
CALCULATE ([Unique Customers],
TREATAS(VALUES('SelectedItem'[ITEM]), 'Sales Line'[Item]))
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Basket Analysis = 
VAR v1 = SELECTEDVALUE('SelectedItem'[ITEM])  
VAR v2 = SELECTEDVALUE('GeneralBasket'[ITEM]) 
VAR V3 = SELECTEDVALUE('AnalysisType'[Type])  
VAR v4 =  
SUMMARIZE(FILTER('Sales Line',  
RELATED('Sales Line -Duplicate'[Item]) = v1),'Sales Line'[Order #])

VAR v5 = SUMMARIZE(v4,
'Sales Line'[Order #],
"Basket" , CONCATENATEX(RELATEDTABLE('Sales Line'), 'Sales Line'[Item], "|")
)
VAR v6 = SUMX(v4,1)
VAR v7 = SUMX( v5, IF(PATHCONTAINS([Basket], v2),1, BLANK()))
RETURN 
SWITCH(TRUE(), 
v1 &amp;lt;&amp;gt; v2 &amp;amp;&amp;amp; V3 = "% Second Product is Purchased with First",     DIVIDE( v7,v6, BLANK() ),
v1 &amp;lt;&amp;gt; v2 &amp;amp;&amp;amp; V3 = "Count of Shared Baskets", v7,
v1 &amp;lt;&amp;gt; v2 &amp;amp;&amp;amp; V3 = "count of first Product Purchase", v6,
BLANK () )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiMDgyNDlkNjAtZGRjZS00NjE0LWEwZDktMTRkMWQwYWFjNTBiIiwidCI6IjNlMjFhMTFlLTc3MDctNDdmOC1iMzRhLTc5YTQ2YTQ0ZTk5MyIsImMiOjF9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 13:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Market-Basket-Analysis-Bulk-Search/m-p/3981060#M1098</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2024-06-18T13:50:05Z</dc:date>
    </item>
  </channel>
</rss>

