<?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 over Stock by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028329#M103363</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477984" data-lia-user-login="Sofinobi" class="lia-mention lia-mention-user"&gt;Sofinobi&lt;/a&gt;&amp;nbsp;, you can try something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;yourmeasure =&lt;BR /&gt;VAR current_item = SELECTEDVALUE ( data[item] )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE ( YOUR_EXPRESSION, data[item] = current_item )&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 10:19:04 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2023-01-18T10:19:04Z</dc:date>
    <item>
      <title>sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028297#M103359</link>
      <description>&lt;P&gt;Hello again community,&lt;/P&gt;&lt;P&gt;please, i come back for your help again to calculate the sum of over stock,&lt;/P&gt;&lt;P&gt;now, i have :&lt;BR /&gt;1 - the measure to calculate the average quantity in stock by month &lt;STRONG&gt;[Avg Qte]&lt;BR /&gt;&lt;/STRONG&gt;2- and with the same measure i have the average price by month &lt;STRONG&gt;[Avg Price]&lt;/STRONG&gt;&lt;BR /&gt;2 - the measure to calculate the average sales quantity of last 3 months &lt;STRONG&gt;[Avg Sales Qte]&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;please, i need to calcu&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;late &lt;STRONG&gt;The over Stock&lt;/STRONG&gt; by month with equal to = &lt;STRONG&gt;([Avg Qte]-[Avg Sales Qte])*[Avg Price]&lt;BR /&gt;&lt;/STRONG&gt;i tried this simple measure, but it doesn't keep in mind the different&amp;nbsp;&lt;STRONG&gt;ITEMs&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;thank you all&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 10:05:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028297#M103359</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-18T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028329#M103363</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477984" data-lia-user-login="Sofinobi" class="lia-mention lia-mention-user"&gt;Sofinobi&lt;/a&gt;&amp;nbsp;, you can try something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;yourmeasure =&lt;BR /&gt;VAR current_item = SELECTEDVALUE ( data[item] )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE ( YOUR_EXPRESSION, data[item] = current_item )&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 10:19:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028329#M103363</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-01-18T10:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028407#M103373</link>
      <description>&lt;P&gt;Hi, thank you for your answer,&lt;BR /&gt;but itsn't what i'm looking for: your measure calculate only when i filter by &lt;STRONG&gt;ITEM&lt;BR /&gt;&lt;/STRONG&gt;me i need to calculate the global &lt;STRONG&gt;over stock&lt;/STRONG&gt; and represent it in a line chart by month, also it reacts when i filter by &lt;STRONG&gt;ITEM&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 10:55:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028407#M103373</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-18T10:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028500#M103378</link>
      <description>&lt;P&gt;i'll try to explain more,&lt;BR /&gt;what the &lt;STRONG&gt;over stock &lt;/STRONG&gt;that i need is something like SUMX (line by line)&lt;BR /&gt;eg :&amp;nbsp;&lt;STRONG&gt;([Avg Qte]item1-[Avg Sales Qte]item1)*[Avg Price]item1 +&amp;nbsp;([Avg Qte]item2-[Avg Sales Qte]item2)*[Avg Price]item2&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 11:43:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028500#M103378</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-18T11:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028562#M103384</link>
      <description>&lt;P&gt;msg 3:&lt;BR /&gt;i have a sollution in my mind, that i create a summarized table (from 2 tables : date table and item table)&lt;BR /&gt;after that, i'll calculate the sum of over stock using &lt;STRONG&gt;SUMX&lt;BR /&gt;but i don't know how to create summarize from 2 tables&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/STRONG&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 12:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3028562#M103384</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-18T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3029038#M103432</link>
      <description>&lt;P&gt;Please, provide some sample data (not an image) and the result you want to achieve (how it looks like calculated).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 15:33:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3029038#M103432</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-01-18T15:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum over Stock by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3039939#M104220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp; sorry to be late for the answer&lt;BR /&gt;here is the sample of my data in pbix file&lt;BR /&gt;actualy, the over stock value is correct only if i filter by product, if i turn off the filter the result is wrong (because the averages that i have dont take consideration of every product separately)&lt;BR /&gt;please if you can help.&lt;BR /&gt;thank you.&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1MDY8tJbEgQMZ-8lxPvFODVcYo8oV61-o/view?usp=share_link" target="_self"&gt;OverStock.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 10:59:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-over-Stock-by-month/m-p/3039939#M104220</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-24T10:59:05Z</dc:date>
    </item>
  </channel>
</rss>

