<?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: Iterative dax column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204635#M116670</link>
    <description>&lt;P&gt;Thanks for the help. It's working!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 09:01:39 GMT</pubDate>
    <dc:creator>Vaibhav3008</dc:creator>
    <dc:date>2023-04-25T09:01:39Z</dc:date>
    <item>
      <title>Iterative dax column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204134#M116634</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to build a dynamic column with iterative values as below. I already have "To be added value" and "Inventory Value". Need to build the "Projection" column through dax. Please help on how to get to this result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be great. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 03:30:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204134#M116634</guid>
      <dc:creator>Vaibhav3008</dc:creator>
      <dc:date>2023-04-25T03:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative dax column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204412#M116651</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="537446" data-lia-user-login="Vaibhav3008" class="lia-mention lia-mention-user"&gt;Vaibhav3008&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can add an additional column called "row number", your problem may be solved like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here's the [DAX] code in the text format for convenience:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;projection = 
VAR current_row_number = [row number]
VAR last_inv_value_index = MAXX ( FILTER ( ALL ( data ), NOT ( ISBLANK ( data[inventory value] ) ) ), [row number] ) 
VAR base = LOOKUPVALUE ( data[inventory value], data[row number], last_inv_value_index )
VAR surplus = CALCULATE ( SUM ( data[to be added value] ), ALL ( data ), data[row number] &amp;gt; last_inv_value_index, data[row number] &amp;lt;= current_row_number )
VAR result = IF ( ISBLANK( data[inventory value] ), base + surplus, BLANK () )
RETURN result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If a new column is not an option, you will need a more complex solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Best Regards, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Alexander&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@powerbi-vlog" target="_blank"&gt;My YouTube vlog in English&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@pbi-vlog" target="_blank"&gt;My YouTube vlog in Russian&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 07:13:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204412#M116651</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2023-04-25T07:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative dax column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204635#M116670</link>
      <description>&lt;P&gt;Thanks for the help. It's working!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 09:01:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterative-dax-column/m-p/3204635#M116670</guid>
      <dc:creator>Vaibhav3008</dc:creator>
      <dc:date>2023-04-25T09:01:39Z</dc:date>
    </item>
  </channel>
</rss>

