<?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: Creating Production Orders based on Stocking Levels in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2934857#M96651</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475944" data-lia-user-login="TorbenBoehrnsen" class="lia-mention lia-mention-user"&gt;TorbenBoehrnsen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use calculate() function : calculate(expression,filter)&lt;/P&gt;
&lt;P&gt;You can refer to the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.sqlbi.com%2Farticles%2Funderstanding-circular-dependencies%2F&amp;amp;data=05%7C01%7Cv-xinruzhu%40microsoft.com%7Cc687017098bc42171c2b08dad1da1260%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638053031853545344%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=n278tsGdI2qgf4u0u5049kAOavLBbiwLy4Uzp8CZwiI%3D&amp;amp;reserved=0" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-circular-dependencies/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If this does not meet your requirement, can you offer some example data and the expected output&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yolo Zhu&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 07:32:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-29T07:32:19Z</dc:date>
    <item>
      <title>Creating Production Orders based on Stocking Levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2933325#M96558</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;I am currently trying to build out a stock level model. See Table above:&lt;BR /&gt;&lt;BR /&gt;Legend:&lt;BR /&gt;Week of - Date of the Monday in a week (Mon-Sun)&lt;BR /&gt;New Sales - Incoming Customer Orders for current Week&lt;BR /&gt;Total Sales - Cumulative Customer Sales up to and including currentWeek&lt;/P&gt;&lt;P&gt;Desired Stock - Stock Level that I would like to acchieve but not go (too much) past&lt;BR /&gt;Initial Stock - Stock Level at Day 0&lt;BR /&gt;Cumulative Orders Places - Cumulative Production Orders placed up to and including currrent Week&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (We want to only Produce multiples of 10)&lt;BR /&gt;Cumulative Orders Places T-1 -&amp;nbsp;Cumulative Production Orders placed up to not including current Week&lt;BR /&gt;Cumulative Orders Places T-ALT -&amp;nbsp;Cumulative Production Orders placed up to ALT weeks ago&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (ALT is a variable that describes our current lead time in weeks)&lt;/P&gt;&lt;P&gt;Cumulative &amp;nbsp;Orders Places T-Alt1 -&amp;nbsp;Cumulative Production Orders placed up to ALT+1 weeks ago&lt;BR /&gt;Orders Places - Production Orders Placed in Current Week =&amp;nbsp; [Cumulative Orders Places] - [Cumulative Orders Places T-1]&lt;/P&gt;&lt;P&gt;Orders Received - Orders received from Production in current Week = [Cumulative Orders Places T-ALT] - [Cumulative Orders Places T-ALT1]&lt;BR /&gt;Cumulative Change in Stock = [Cumulative Orders Places T-ALT] - [Total Demand]&lt;BR /&gt;Stock Level = [Initial Stock] + [Cumulative Change in Stock]&lt;BR /&gt;&lt;BR /&gt;My Big question:&amp;nbsp;&lt;BR /&gt;How can I have the [Cumulative Orders Placed] Measure check the [Stock Level] one period Prior to ensure that is stock levels are above [Desired Stock] no new orders are placed, without getting a circular dependency?&lt;BR /&gt;&lt;BR /&gt;Thank you already for all your help and ideas!&lt;BR /&gt;Torben&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:27:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2933325#M96558</guid>
      <dc:creator>TorbenBoehrnsen</dc:creator>
      <dc:date>2022-11-28T15:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Production Orders based on Stocking Levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2934857#M96651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475944" data-lia-user-login="TorbenBoehrnsen" class="lia-mention lia-mention-user"&gt;TorbenBoehrnsen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use calculate() function : calculate(expression,filter)&lt;/P&gt;
&lt;P&gt;You can refer to the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.sqlbi.com%2Farticles%2Funderstanding-circular-dependencies%2F&amp;amp;data=05%7C01%7Cv-xinruzhu%40microsoft.com%7Cc687017098bc42171c2b08dad1da1260%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638053031853545344%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=n278tsGdI2qgf4u0u5049kAOavLBbiwLy4Uzp8CZwiI%3D&amp;amp;reserved=0" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-circular-dependencies/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If this does not meet your requirement, can you offer some example data and the expected output&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yolo Zhu&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 07:32:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2934857#M96651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T07:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Production Orders based on Stocking Levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2948605#M97646</link>
      <description>&lt;P&gt;Sadly, the artical does not 100% answer my question, as I understand where my circular dependency is, but am not sure how to get rid of it.&amp;nbsp;&lt;BR /&gt;At the line below you can find a example of the report that I am currently working on.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/bnj8iqsues8zxkv/Stocking%20Levels%20Sample%20Data.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/bnj8iqsues8zxkv/Stocking%20Levels%20Sample%20Data.pbix?dl=0&lt;/A&gt;&lt;BR /&gt;My big issue is that I do not want to create a new order, if the Stock level is at or above the desired Stock.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for all the help!&lt;BR /&gt;&lt;BR /&gt;Torben&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 13:55:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Production-Orders-based-on-Stocking-Levels/m-p/2948605#M97646</guid>
      <dc:creator>TorbenBoehrnsen</dc:creator>
      <dc:date>2022-12-05T13:55:29Z</dc:date>
    </item>
  </channel>
</rss>

