<?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: Sum total of a column in a matrix until a row of another column is null or cero in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1204361#M19331</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For column B,C,D I need the sum until the last row in the B column is no blank.&lt;/P&gt;&lt;P&gt;For column, D,E,F, I need to sum until the first row in the B column is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see what I need in the row 33.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 16:52:11 GMT</pubDate>
    <dc:creator>cnitscher</dc:creator>
    <dc:date>2020-07-06T16:52:11Z</dc:date>
    <item>
      <title>Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1189082#M18748</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the total of a column in a matrix but only until a row in another column is blank or cero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 12:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1189082#M18748</guid>
      <dc:creator>cnitscher</dc:creator>
      <dc:date>2020-06-29T12:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1189356#M18758</link>
      <description>&lt;P&gt;You can write a measure that tests if the other row is blank, or equals zero, and only return a total if the other row has a number. Every cell in a Power BI report is calculated independently, unlike a spreadsheet where cells often depend on each other. If you need help with the DAX please create a small sample table in excel, or in a power bi file and make it available and I'll help you with the coding.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 14:09:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1189356#M18758</guid>
      <dc:creator>kentyler</dc:creator>
      <dc:date>2020-06-29T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1191333#M18829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114168" data-lia-user-login="kentyler" class="lia-mention lia-mention-user"&gt;kentyler&lt;/a&gt;, I would really appreciate if you can help me with the DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the link of the excel&amp;nbsp;&lt;A href="https://ripleycorp-my.sharepoint.com/:x:/g/personal/cnitscher_ripley_com/ETW4OBfYMKlDnFYbqMrDN9QBXU8hlekdMhrdw6EZAvsnsg?e=9dvIyQ" target="_blank" rel="noopener"&gt;Example&lt;/A&gt;&amp;nbsp; with a short explanation of what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 07:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1191333#M18829</guid>
      <dc:creator>cnitscher</dc:creator>
      <dc:date>2020-06-30T07:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1198296#M19102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114168" data-lia-user-login="kentyler" class="lia-mention lia-mention-user"&gt;kentyler&lt;/a&gt;&amp;nbsp;, did you have the chance to have a look at this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1198296#M19102</guid>
      <dc:creator>cnitscher</dc:creator>
      <dc:date>2020-07-02T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1198441#M19105</link>
      <description>What do you mean by "But for these fieldS that are stock, I need the next row after the SALES TY is blank whics is W202021" if the row of SALES TY is blank then it will return blank, do you want something else there in STOCK RT LY?</description>
      <pubDate>Thu, 02 Jul 2020 15:56:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1198441#M19105</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-07-02T15:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1204361#M19331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For column B,C,D I need the sum until the last row in the B column is no blank.&lt;/P&gt;&lt;P&gt;For column, D,E,F, I need to sum until the first row in the B column is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see what I need in the row 33.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:52:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1204361#M19331</guid>
      <dc:creator>cnitscher</dc:creator>
      <dc:date>2020-07-06T16:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total of a column in a matrix until a row of another column is null or cero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1205650#M19361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189103" data-lia-user-login="cnitscher" class="lia-mention lia-mention-user"&gt;cnitscher&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can achieve this using the below columns and measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Create 2 columns as shown below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales(with zeros for future) = IF(Sheet1[Sales this Year] = 0, 0, Sheet1[Sales Last Year])

Stocks(with zeros for future) = IF(Sheet1[Stock TY] = 0, 0, Sheet1[Stock LY])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step2: Create the below 4 measures&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Sales this year = SUM(Sheet1[Sales this Year])
Total Sales last year = SUM(Sheet1[Sales(with zeros for future)])
Total Stocks this year = SUM(Sheet1[Stock TY])
Total Stocks last year = SUM(Sheet1[Stocks(with zeros for future)])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Notice that the newly created columns are used in the measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Output screenshots are given below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When these measures are used in the table, they look as shown below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is what you are lookng for, pls. mark this as solution and appreciate with a kudos!!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 07:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-of-a-column-in-a-matrix-until-a-row-of-another-column/m-p/1205650#M19361</guid>
      <dc:creator>Thejeswar</dc:creator>
      <dc:date>2020-07-07T07:52:44Z</dc:date>
    </item>
  </channel>
</rss>

