<?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: Dynamic Customer Grouping in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486365#M28443</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for this.&lt;BR /&gt;Attaching a sample data file with 70 transactions, 30 customers, and 7 companies.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1aZSttC8ne2xzWg1H_LFCIsFEWr_pjSmq5WGpdl8P_d0/edit?usp=sharing" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1aZSttC8ne2xzWg1H_LFCIsFEWr_pjSmq5WGpdl8P_d0/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 06:01:03 GMT</pubDate>
    <dc:creator>spacerocket22</dc:creator>
    <dc:date>2020-11-11T06:01:03Z</dc:date>
    <item>
      <title>Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486314#M28440</link>
      <description>&lt;P&gt;I work for an organization that owns 15 companies.&lt;BR /&gt;1. I want to show the number of customers that purchased from 1 company, 2 companies, 3 companies, etc.&lt;BR /&gt;2. I also want to know the number of customers for different combinations of these companies. (Cross company customers)&lt;BR /&gt;3. I want this to be dynamic so when the user selects a date range on the slicer, everything updates accordingly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A simple example of data I have:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;transaction_key&lt;/TD&gt;&lt;TD&gt;customer_key&lt;/TD&gt;&lt;TD&gt;company_key&lt;/TD&gt;&lt;TD&gt;sale_amount&lt;/TD&gt;&lt;TD&gt;date_key&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;234&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;567&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;891&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;987&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;How can I achieve this in Power BI?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 05:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486314#M28440</guid>
      <dc:creator>spacerocket22</dc:creator>
      <dc:date>2020-11-11T05:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486336#M28441</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264468" data-lia-user-login="spacerocket22" class="lia-mention lia-mention-user"&gt;spacerocket22&lt;/a&gt;&amp;nbsp;you need provide more sample data and with date&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 05:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486336#M28441</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-11T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486365#M28443</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for this.&lt;BR /&gt;Attaching a sample data file with 70 transactions, 30 customers, and 7 companies.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1aZSttC8ne2xzWg1H_LFCIsFEWr_pjSmq5WGpdl8P_d0/edit?usp=sharing" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1aZSttC8ne2xzWg1H_LFCIsFEWr_pjSmq5WGpdl8P_d0/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 06:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486365#M28443</guid>
      <dc:creator>spacerocket22</dc:creator>
      <dc:date>2020-11-11T06:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486370#M28444</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264468" data-lia-user-login="spacerocket22" class="lia-mention lia-mention-user"&gt;spacerocket22&lt;/a&gt; , You have to create a measure&lt;/P&gt;
&lt;P&gt;count(Table[company_key]), As a measure, this can not be used as a filter. You need to create an independent table manually or using generateseries with 1 to 100(say). And create new measure/s that uses this table.&lt;/P&gt;
&lt;P&gt;Refer to my dynamic segementation video. You case = join will work no need of range unless you need a range&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=CuczXPj0N-k" target="_blank"&gt;https://www.youtube.com/watch?v=CuczXPj0N-k&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 06:02:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486370#M28444</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-11T06:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486549#M28457</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Great video. Thanks a lot for this!!&lt;BR /&gt;This solves my first question, yes. I can know the number of customers with respect to the number of companies they transact in, but I cannot know the company combinations using this. Given that there are 15 companies, the combinations are a lot.&amp;nbsp;&lt;BR /&gt;I can use the same method to get combinations (manually creating a table with possible combinations) but that might be a lot of manual work and measures. Any other solutions for finding combination wise customers?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:46:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486549#M28457</guid>
      <dc:creator>spacerocket22</dc:creator>
      <dc:date>2020-11-11T07:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486555#M28458</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264468" data-lia-user-login="spacerocket22" class="lia-mention lia-mention-user"&gt;spacerocket22&lt;/a&gt;&amp;nbsp; please try this step by step&lt;/P&gt;&lt;P&gt;Step 1: create a date table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Step 2: create a dimension table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3: create relationship between Dates[Date] and FactTable[date_key]. of cause, you need convert your data in column of date_key to Date Type.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 4: create a measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Step 5: draw the column and measure into a tabulor visual, and date to slicer&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486555#M28458</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-11T07:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486582#M28459</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;Amazingg. This workss!!&amp;nbsp;&lt;BR /&gt;Any idea on how we can achieve part 2 I mentioned?&lt;BR /&gt;Like finding the exact company pairs with respect to number of customers?&lt;BR /&gt;For ex:&amp;nbsp;&lt;BR /&gt;number of customers that buy from company 1 and company 2?&amp;nbsp;&lt;BR /&gt;number of customers that buy from company 1 and company 2 and company 3?&lt;BR /&gt;And all possible combinations?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486582#M28459</guid>
      <dc:creator>spacerocket22</dc:creator>
      <dc:date>2020-11-11T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486625#M28462</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264468" data-lia-user-login="spacerocket22" class="lia-mention lia-mention-user"&gt;spacerocket22&lt;/a&gt;&amp;nbsp; might this work, draw company_key in a list slicer, then you can assign your combination.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486625#M28462</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-11T08:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486653#M28463</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to list the company names as combinations as well.&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486653#M28463</guid>
      <dc:creator>spacerocket22</dc:creator>
      <dc:date>2020-11-11T08:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Customer Grouping</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486695#M28464</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264468" data-lia-user-login="spacerocket22" class="lia-mention lia-mention-user"&gt;spacerocket22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can create a dimension table like this. it is a hard work &lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:54:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Customer-Grouping/m-p/1486695#M28464</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-11T08:54:11Z</dc:date>
    </item>
  </channel>
</rss>

