<?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: distinct count and group by in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949187#M454792</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;No. i am trying to do it in Power BI. just use EXCEL to explain my need. lol...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And no, i need to know what % of Cust order. ( like x% )&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 15:17:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-26T15:17:33Z</dc:date>
    <item>
      <title>distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949075#M454739</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I want to find out what % of customer order by Region and Tier.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the count of how many order by dropping to value and changed to distinct count,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;But i cant get the total count of each group. Can anyone help with the measure please ! Thank you&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:26:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949075#M454739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949118#M454758</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to check if you are trying to do this in excel?&lt;/P&gt;&lt;P&gt;In excel you can create a Pivot table for "Product" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this helps please give Kudos and mark it as a Solution! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949118#M454758</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-02-26T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949132#M454764</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by count of each group? Can you share the expected result based on the sample data shared?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.vivran.in/" target="_blank"&gt;https://www.vivran.in/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:55:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949132#M454764</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-02-26T14:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949181#M454788</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="141768" data-lia-user-login="vivran22" class="lia-mention lia-mention-user"&gt;vivran22&lt;/a&gt;&amp;nbsp;The result is in the bottom session&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # OF Order&amp;nbsp; &amp;nbsp;|&amp;nbsp; Total # of Cust&amp;nbsp; | % Cust ordered&lt;/P&gt;&lt;P&gt;Tier 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Region 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 15:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949181#M454788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949187#M454792</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;No. i am trying to do it in Power BI. just use EXCEL to explain my need. lol...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And no, i need to know what % of Cust order. ( like x% )&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 15:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949187#M454792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T15:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949210#M454806</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple ways of achieving this. One below is without using any measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sample dataset I have created for this purpose:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have used the matrix visual, and dragged Order Quantity thrice under Values:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I selected Count from the field properties&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I selected Sum from field properties&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I selected Sum from field properties &amp;gt; Show Value as &amp;gt; Percent of column total&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution&lt;BR /&gt;Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.vivran.in/" target="_blank"&gt;https://www.vivran.in/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 15:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949210#M454806</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-02-26T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949232#M454818</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="141768" data-lia-user-login="vivran22" class="lia-mention lia-mention-user"&gt;vivran22&lt;/a&gt;&amp;nbsp;thank your very much for your help. but NO. thats not what i am looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for % of #Cust place an order. (Yes - ordered; NO - didnt ordered) . &lt;STRONG&gt;Like 10 out of 20 ordered. 50% placed order.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your example. every cust had ordered. thats 100% placed order...&lt;/P&gt;&lt;P&gt;but not every Cust is in the fact or transcation table; so thats why i cut out 4 cust in my example. total 20 cust only 16 had ordered.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 15:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/949232#M454818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T15:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/950176#M455314</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The measure should something like the follow:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count OF Cust Ordered = CALCULATE(DISTINCTCOUNT('Table'[Cust]),ALLEXCEPT('Table','Table'[Tier],'Table'[Region]),FILTER('Table','Table'[Order]&amp;lt;&amp;gt;BLANK()))

% = [Count OF Cust Ordered]/COUNT('Table'[Cust])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matrix:&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Community Support Team _ Paul Zheng&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Feb 2020 03:33:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/950176#M455314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-27T03:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: distinct count and group by</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/950406#M455412</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You requirement was not as detailed in your orignal post. Basis your recent input, may I suggest you to have a separate table for maintaing list of customers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer table:&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;and separate table for sales order:&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;Create the relationship between these two tables:&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;and then use following measures to get the desired results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Customers = COUNTROWS(dtCust)

Customer Ordered = DISTINCTCOUNT(dtSales[Customer])

% Ordered = DIVIDE([Customer Ordered],[Total Customers])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&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;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution&lt;BR /&gt;Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.vivran.in/" target="_blank"&gt;https://www.vivran.in/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 06:49:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/distinct-count-and-group-by/m-p/950406#M455412</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-02-27T06:49:05Z</dc:date>
    </item>
  </channel>
</rss>

