<?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 DAX help group by distinct count measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1153835#M17606</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am a recent user of PBI and i am struggling with some data.&lt;/P&gt;&lt;P&gt;I need help to write two measures:&lt;/P&gt;&lt;P&gt;- one measure that group by "bank" and count unique "process" with errors&lt;/P&gt;&lt;P&gt;- one measure that group by "bank" and count total number of unique process received&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the table and the desired results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 19:50:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-11T19:50:00Z</dc:date>
    <item>
      <title>DAX help group by distinct count measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1153835#M17606</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am a recent user of PBI and i am struggling with some data.&lt;/P&gt;&lt;P&gt;I need help to write two measures:&lt;/P&gt;&lt;P&gt;- one measure that group by "bank" and count unique "process" with errors&lt;/P&gt;&lt;P&gt;- one measure that group by "bank" and count total number of unique process received&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the table and the desired results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 19:50:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1153835#M17606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-11T19:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help group by distinct count measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1153909#M17607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;DAX does a good job of using the context of what's in a table to group things for you. The DAX for what you're looking for is pretty simple, we just need to write a formula that counts the unique processes with errors, and then another similar formula for calculating just the unique processes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Distinct Processes with Errors =
CALCULATE(
DISTINCTCOUNT(process number),
NOT(ISBLANK(error type))
)

Distinct Processes = 
DISTINCTCOUNT(process number)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 20:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1153909#M17607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-11T20:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help group by distinct count measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1154615#M17630</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create 2 measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Result1 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var _a = FILTER(ALLEXCEPT('Table','Table'[Bank]), 'Table'[ErrorType] &amp;lt;&amp;gt; BLANK())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(DISTINCTCOUNT('Table'[Process]),_a)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Result2 = CALCULATE(DISTINCTCOUNT('Table'[Process]),ALLEXCEPT('Table','Table'[Bank]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 06:13:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1154615#M17630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T06:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help group by distinct count measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1157179#M17701</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the code bellow didn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;NOT(ISBLANK(error type))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 16:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1157179#M17701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-13T16:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help group by distinct count measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1157412#M17705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also new to DAX. I was just wondering if we could use the following code for your 2nd requirement !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table = SUMMARIZE(Sheet1,Sheet1[bank],"numb",DISTINCTCOUNT(Sheet1[process]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please let me know your inputs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 Jun 2020 21:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-group-by-distinct-count-measure/m-p/1157412#M17705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-13T21:55:40Z</dc:date>
    </item>
  </channel>
</rss>

