<?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: Frequency Count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243211#M20394</link>
    <description>&lt;P&gt;2.1 is not about the number of plans, it is about the unique number of plans a group of customers may have. As I said, a double histogram (bucket in a bucket).&amp;nbsp; Even if you have a million customers the number of plans each of them has must be much smaller, no?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 23:36:53 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-07-22T23:36:53Z</dc:date>
    <item>
      <title>Frequency Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1241796#M20367</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its been bothering me for a while and I believe answer is simple and striaght forward. But brain has gone flat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show how many "Active" Plans each customer has. Not fussed about date/time. I believe the relationship to Dim Calendar will take care of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the data is -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ConsumerID&lt;/TD&gt;&lt;TD&gt;PlanID&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;StatusDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;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;&lt;/P&gt;&lt;P&gt;I want result as&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Number of Plans&lt;/TD&gt;&lt;TD&gt;Number of Customers&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1(customerid 2)*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2(customer id 3 &amp;amp; 4)*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1(customer id&amp;nbsp; 1)*&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* The info in bracket is to show you, not what I need in output. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 13:01:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1241796#M20367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T13:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1241968#M20371</link>
      <description>&lt;P&gt;If I read your expected outcome then you &lt;STRONG&gt;don't&lt;/STRONG&gt; want to&amp;nbsp;&lt;SPAN&gt;show how many "Active" Plans each customer has. What you are asking for is a bucketing of how many customers a group of plans has, sort of a double histogram.&amp;nbsp; Can you please clarify?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, here's the first step.&amp;nbsp; Number of active plans per customer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;SPAN&gt;Next step is to create a measure table to do the grouping, and hopefully also be able to list the customer IDs as a bonus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp; It would be much simpler if one could start with a static list of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;active plans.&amp;nbsp; Would that be acceptable?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:15:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1241968#M20371</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-22T14:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243192#M20391</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. That is another way of looking at it - "how many customers a group of plans has"&lt;/P&gt;&lt;P&gt;I see where you are going. though couple of things -&lt;/P&gt;&lt;P&gt;1) I dont need to show the Customer ID column, I need to show a count&lt;/P&gt;&lt;P&gt;2) Static List&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.1) "may" be possible - but there is no known upper limit. It could be about million plans&lt;/P&gt;&lt;P&gt;2.2)&amp;nbsp;what am I joining it to? As in what are you suggesting to use this for?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 23:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243192#M20391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T23:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243211#M20394</link>
      <description>&lt;P&gt;2.1 is not about the number of plans, it is about the unique number of plans a group of customers may have. As I said, a double histogram (bucket in a bucket).&amp;nbsp; Even if you have a million customers the number of plans each of them has must be much smaller, no?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 23:36:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243211#M20394</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-22T23:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243670#M20412</link>
      <description>&lt;P&gt;Ahhh!! That makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 04:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-Count/m-p/1243670#M20412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T04:24:59Z</dc:date>
    </item>
  </channel>
</rss>

