<?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: Calculating Past and Future Inventory Value based on today's inventory value in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3821866#M51651</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/662516"&gt;@power2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;1. Add index column in Power Query Editor&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1712645243439.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1074890i34BBAE0B4C0A7BF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1712645243439.png" alt="vyiruanmsft_1-1712645243439.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;calculated column&lt;/STRONG&gt; as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected Column = 
VAR _inventory =
    CALCULATE ( SUM ( 'Table'[Inventory Value] ), ALL ( 'Table' ) )
RETURN
    CALCULATE (
        _inventory + SUM ( 'Table'[OUT] )
            - SUM ( 'Table'[IN] ),
        FILTER ( 'Table', 'Table'[Index] &amp;lt;= EARLIER ( 'Table'[Index] ) - 1 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1712645188518.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1074889i19248580DF730B8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1712645188518.png" alt="vyiruanmsft_0-1712645188518.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 06:48:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-09T06:48:51Z</dc:date>
    <item>
      <title>Calculating Past and Future Inventory Value based on today's inventory value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3820267#M51633</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I built a power bi report that can show the inventory value now. And it can also show what was received each day and what was processed. So, let's say today's inventory value is $100,000 and we received $10,000 and processed $20,000 today so that would mean our inventory was $110,000 yesterday right!&lt;BR /&gt;&lt;BR /&gt;I want to create a system where it will back track and find the inventry value of each day in the last 10 months and it will also start calculating it from now on in the future. All this will be based off of today's inventory value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 17:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3820267#M51633</guid>
      <dc:creator>power2</dc:creator>
      <dc:date>2024-04-08T17:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Past and Future Inventory Value based on today's inventory value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3820631#M51639</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="power2_0-1712599203929.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1074540i0950D6242E412D56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="power2_0-1712599203929.png" alt="power2_0-1712599203929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is a visual representation of what I am looking for. Obviolusy, if I did this on excel, I would just drag up and it would fill in the value based on the easy logic that I did (Current Value - In + Out)&lt;BR /&gt;&lt;BR /&gt;I need to implement this in Power Bi with a DAX code.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 18:02:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3820631#M51639</guid>
      <dc:creator>power2</dc:creator>
      <dc:date>2024-04-08T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Past and Future Inventory Value based on today's inventory value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3821866#M51651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/662516"&gt;@power2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;1. Add index column in Power Query Editor&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1712645243439.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1074890i34BBAE0B4C0A7BF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1712645243439.png" alt="vyiruanmsft_1-1712645243439.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;calculated column&lt;/STRONG&gt; as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected Column = 
VAR _inventory =
    CALCULATE ( SUM ( 'Table'[Inventory Value] ), ALL ( 'Table' ) )
RETURN
    CALCULATE (
        _inventory + SUM ( 'Table'[OUT] )
            - SUM ( 'Table'[IN] ),
        FILTER ( 'Table', 'Table'[Index] &amp;lt;= EARLIER ( 'Table'[Index] ) - 1 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1712645188518.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1074889i19248580DF730B8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1712645188518.png" alt="vyiruanmsft_0-1712645188518.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 06:48:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculating-Past-and-Future-Inventory-Value-based-on-today-s/m-p/3821866#M51651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-09T06:48:51Z</dc:date>
    </item>
  </channel>
</rss>

