<?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: Calculate the sum of multiple row with a condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1061457#M14780</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="227317" data-lia-user-login="tamim" class="lia-mention lia-mention-user"&gt;tamim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code for measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(SUM('Table'[Column1]) &amp;lt;= 10; SUM('Table'[Column1]); BLANK()); &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(ALL('Table'); 'Table'[Column1] &amp;lt;= MAX('Table'[Column1]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Ricardo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 01 May 2020 17:52:41 GMT</pubDate>
    <dc:creator>camargos88</dc:creator>
    <dc:date>2020-05-01T17:52:41Z</dc:date>
    <item>
      <title>Calculate the sum of multiple row with a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1061378#M14776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following table, as you can see the Sum of distanceKM is 512.&lt;/P&gt;&lt;P&gt;I want o make a measure to calculate the Sum of distanceKM until its value is less than 450km.&lt;/P&gt;&lt;P&gt;So, I want a condition in the measure to stop calculating the Sum once it will reach 450km.&lt;/P&gt;&lt;P&gt;The reason is that I want to know on which row the sum will be 450km or less.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 16:54:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1061378#M14776</guid>
      <dc:creator>tamim</dc:creator>
      <dc:date>2020-05-01T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the sum of multiple row with a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1061457#M14780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="227317" data-lia-user-login="tamim" class="lia-mention lia-mention-user"&gt;tamim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code for measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(SUM('Table'[Column1]) &amp;lt;= 10; SUM('Table'[Column1]); BLANK()); &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(ALL('Table'); 'Table'[Column1] &amp;lt;= MAX('Table'[Column1]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Ricardo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 May 2020 17:52:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1061457#M14780</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-05-01T17:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the sum of multiple row with a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1062407#M14807</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hi, Thank you for your answer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I am still gettin an error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;check the underlined:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(SUM(sheet2[distanceKM]) &amp;lt;= 10, SUM(sheet2[distanceKM]), BLANK()),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(ALL(sheet2),&amp;nbsp;&lt;U&gt;sheet2[distanceKM] &amp;lt;= MAX(sheet2[distanceKM]))&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 02 May 2020 11:24:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1062407#M14807</guid>
      <dc:creator>tamim</dc:creator>
      <dc:date>2020-05-02T11:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the sum of multiple row with a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1062601#M14813</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="227317" data-lia-user-login="tamim" class="lia-mention lia-mention-user"&gt;tamim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post the error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 14:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1062601#M14813</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-05-02T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the sum of multiple row with a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1062642#M14814</link>
      <description>To do this you have to have an order among all the distances. If you use only the distances themselves without any outer order, then you can calculate a cumulative distance in 2 ways:&lt;BR /&gt;	1. from the smallest distance to the biggest or&lt;BR /&gt;	2. the other way round.&lt;BR /&gt;You have not specified the order, so this task does not have a clear solution.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sat, 02 May 2020 14:46:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1062642#M14814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-02T14:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the sum of multiple row with a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1073175#M15007</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it look similar to this in Excel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:47:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-multiple-row-with-a-condition/m-p/1073175#M15007</guid>
      <dc:creator>tamim</dc:creator>
      <dc:date>2020-05-05T14:47:26Z</dc:date>
    </item>
  </channel>
</rss>

