<?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 Not able to get the previous day stock quantity into the curent day if the current day has no stock. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-to-get-the-previous-day-stock-quantity-into-the-curent/m-p/3395006#M128055</link>
    <description>&lt;P&gt;Hello All, I am struggling to get the previous day stock quantity into the current day where it has no stock. Basically its a comparison between actual and previous day stock quantity. Will get to know better by screenshots.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For eg: For example 25th june should show the stock as 16,17,17,669.00 as 22,23,24 june had no stock. Can anyone please help/suggest me a dax code for this , i have been trying to make a new measure for this problem.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 14:17:05 GMT</pubDate>
    <dc:creator>Dave21</dc:creator>
    <dc:date>2023-08-23T14:17:05Z</dc:date>
    <item>
      <title>Not able to get the previous day stock quantity into the curent day if the current day has no stock.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-to-get-the-previous-day-stock-quantity-into-the-curent/m-p/3395006#M128055</link>
      <description>&lt;P&gt;Hello All, I am struggling to get the previous day stock quantity into the current day where it has no stock. Basically its a comparison between actual and previous day stock quantity. Will get to know better by screenshots.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For eg: For example 25th june should show the stock as 16,17,17,669.00 as 22,23,24 june had no stock. Can anyone please help/suggest me a dax code for this , i have been trying to make a new measure for this problem.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-to-get-the-previous-day-stock-quantity-into-the-curent/m-p/3395006#M128055</guid>
      <dc:creator>Dave21</dc:creator>
      <dc:date>2023-08-23T14:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get the previous day stock quantity into the curent day if the current day has no stock.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-to-get-the-previous-day-stock-quantity-into-the-curent/m-p/3401662#M128465</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="607147" data-lia-user-login="Dave21" class="lia-mention lia-mention-user"&gt;Dave21&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can extract the current date and use it as condition to find out the previous records with stock not equal to blank, then you can and use this result to show on the blank parts.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR currDate =
    MAX ( Table1[Pay day] )
VAR prevDate =
    CALCULATE (
        MAX ( Table1[Pay day] ),
        FILTER ( ALLSELECTED ( Table1 ), [Stock] &amp;gt; 0 )
    )
RETURN
    CALCULATE (
        SUM ( Table1[Stock] ),
        FILTER ( ALLSELECTED ( Table1 ), [Pay day] = prevDate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 06:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-to-get-the-previous-day-stock-quantity-into-the-curent/m-p/3401662#M128465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-28T06:57:05Z</dc:date>
    </item>
  </channel>
</rss>

