<?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 how to return the amount of where the sum of values for each student is 0? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103666#M109225</link>
    <description>&lt;P&gt;Heres the situation, according to my dataset(made one fast on Excel to speed things up) i need to retrieve the amount of students which the sum of values is equal to 0:&lt;BR /&gt;&lt;BR /&gt;Heres the dataset:&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ive tried to create this measure :&lt;BR /&gt;&lt;BR /&gt;Measure = CALCULATE(DISTINCTCOUNT(Table1[ID_Student]), FILTER((Table1, SUM((Table1[Value])=0))+0&lt;BR /&gt;&lt;BR /&gt;But it always returning 0 instead of the expect result which is 2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 13:24:56 GMT</pubDate>
    <dc:creator>BostonBI</dc:creator>
    <dc:date>2023-02-28T13:24:56Z</dc:date>
    <item>
      <title>how to return the amount of where the sum of values for each student is 0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103666#M109225</link>
      <description>&lt;P&gt;Heres the situation, according to my dataset(made one fast on Excel to speed things up) i need to retrieve the amount of students which the sum of values is equal to 0:&lt;BR /&gt;&lt;BR /&gt;Heres the dataset:&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ive tried to create this measure :&lt;BR /&gt;&lt;BR /&gt;Measure = CALCULATE(DISTINCTCOUNT(Table1[ID_Student]), FILTER((Table1, SUM((Table1[Value])=0))+0&lt;BR /&gt;&lt;BR /&gt;But it always returning 0 instead of the expect result which is 2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:24:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103666#M109225</guid>
      <dc:creator>BostonBI</dc:creator>
      <dc:date>2023-02-28T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to return the amount of where the sum of values for each student is 0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103727#M109231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my solution:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;__table&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Student]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"__count0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Subject]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;__table&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[__count0]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;You write:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;But it always returning 0 instead of the expect result which is 2. -&amp;gt; why 2 i count 3 students in your example?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103727#M109231</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-28T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to return the amount of where the sum of values for each student is 0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103738#M109234</link>
      <description>&lt;P&gt;Theres actually 4 students on my example, Which 2 of them got only 0 In theis values. Summarizing:&lt;BR /&gt;&lt;BR /&gt;I need to return the amount of students which all values Science,Math and English are 0.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103738#M109234</guid>
      <dc:creator>BostonBI</dc:creator>
      <dc:date>2023-02-28T13:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to return the amount of where the sum of values for each student is 0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103790#M109241</link>
      <description>&lt;P&gt;Okay, thank you. Try this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;__table&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Student]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"__sum0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;__table&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[__sum0]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Student]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:45:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103790#M109241</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-28T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to return the amount of where the sum of values for each student is 0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103935#M109253</link>
      <description>&lt;P&gt;You got that Right,Thank you Alot!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 14:54:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103935#M109253</guid>
      <dc:creator>BostonBI</dc:creator>
      <dc:date>2023-02-28T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to return the amount of where the sum of values for each student is 0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103940#M109254</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507968" data-lia-user-login="BostonBI" class="lia-mention lia-mention-user"&gt;BostonBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Measure1 =&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( Table1[ID_Student] ),&lt;BR /&gt;INT ( CALCULATE ( SUM ( Table1[Value] ) ) = 0 )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 14:59:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-return-the-amount-of-where-the-sum-of-values-for-each/m-p/3103940#M109254</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-28T14:59:53Z</dc:date>
    </item>
  </channel>
</rss>

