<?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: Calculation inventory values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206503#M116785</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make things more clear with the following illustrations.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I can attach you my Excel file here.&amp;nbsp;&lt;BR /&gt;Hope those screenprints make things clear.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 06:26:34 GMT</pubDate>
    <dc:creator>lreinhard77</dc:creator>
    <dc:date>2023-04-26T06:26:34Z</dc:date>
    <item>
      <title>Calculation inventory values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3203594#M116591</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate inventory values as exemplified in the following screenprint.&amp;nbsp;&lt;BR /&gt;My problem is related to the issue price calculation for which I need the **bleep** value and **bleep** qty from the previous row.&amp;nbsp;&lt;BR /&gt;I already tried many things but always get a circular dependency message.&amp;nbsp;&lt;BR /&gt;Does anyone has a tip how to fix this issue and can help me with the correct formula for the issue price calculation?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 19:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3203594#M116591</guid>
      <dc:creator>lreinhard77</dc:creator>
      <dc:date>2023-04-24T19:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inventory values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206045#M116766</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="536282" data-lia-user-login="lreinhard77" class="lia-mention lia-mention-user"&gt;lreinhard77&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to my pbix file.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 

CALCULATE(SUM('Table'[qTY]),FILTER(ALL('Table'),'Table'[date]&amp;lt;=SELECTEDVALUE('Table'[date])&amp;amp;&amp;amp;'Table'[Item]=SELECTEDVALUE('Table'[Item])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;provide more details with your desired output and pbix file without privacy information&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 01:54:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206045#M116766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-26T01:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inventory values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206369#M116780</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make things more clear and prepared some data in Excel.&amp;nbsp;&lt;BR /&gt;In short:&amp;nbsp;&lt;BR /&gt;I get some data from an accounting system (yellow colored section).&amp;nbsp;&lt;BR /&gt;For those data, I want to calculate (a) the issue price because I need it to ultimately calculate (b) the inventory value.&amp;nbsp;&lt;BR /&gt;The inventory value is illustrated in the last column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My problem is that the sales price and sales value (qty * sales price) influences the subsequent sales price calculations.&amp;nbsp;&lt;BR /&gt;As an example, the sales price in line 4 is influenced by the sales price (times the sales quantity) in line 2&lt;BR /&gt;Unfortunately, I don't know the correct way how to make this calculation in PowerBI.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I already tried many things but always get a circularity error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 05:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206369#M116780</guid>
      <dc:creator>lreinhard77</dc:creator>
      <dc:date>2023-04-26T05:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inventory values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206393#M116781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="536282" data-lia-user-login="lreinhard77" class="lia-mention lia-mention-user"&gt;lreinhard77&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Sorry, I'm not smart. Are you trying to calculate the sales pricez column? If according to you 427.5=(0+17100)/40, which column does 40 represent?Cumcurrenh or CurrentBuy?Why is the third column 0?(0-2137.5)/40=53.4375 and how do you get the 55 in (0+17100-2137.5+0+0+0+8100)/55? And why does this result appear in the fourth and fifth row? What is the logic of the calculation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;provide more details with your desired output and pbix file without privacy information&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:10:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206393#M116781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-26T06:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inventory values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206503#M116785</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make things more clear with the following illustrations.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I can attach you my Excel file here.&amp;nbsp;&lt;BR /&gt;Hope those screenprints make things clear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:26:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-inventory-values/m-p/3206503#M116785</guid>
      <dc:creator>lreinhard77</dc:creator>
      <dc:date>2023-04-26T06:26:34Z</dc:date>
    </item>
  </channel>
</rss>

