<?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: Re-ordering Stock Date Format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3137612#M111898</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524744" data-lia-user-login="Digger99" class="lia-mention lia-mention-user"&gt;Digger99&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have creatd a simple sample, please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _1 = 'Table'[stock on shelf] - 'Table'[lead time]
RETURN
    EDATE ( TODAY (), _1 )
&lt;/LI-CODE&gt;
&lt;P&gt;Or a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _1 =MAX( 'Table'[stock on shelf] )-MAX( 'Table'[lead time])
RETURN
    EDATE ( TODAY (), _1 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&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 provide more details with your desired output and pbix file without privacy information (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 _ Polly&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>Fri, 17 Mar 2023 02:16:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-17T02:16:31Z</dc:date>
    <item>
      <title>Re-ordering Stock Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3133195#M111553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to work out when the best time is to re-order my stock, in a date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a screenshot from the data I'm working with. There is a Product (ID &amp;amp; Name), Stock on Shelf - how many months left i have with this item having stock on the shelf (calculated by looking at historical sales), Lead Time - how long it will take in months for the product to be delivered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate the date of when i should put my next order in for each item. And this is the format i'd like it to be shown in PBI (see below. The EDATE function is what i thought would work but in DAX i am getting errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance on this will be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 10:49:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3133195#M111553</guid>
      <dc:creator>Digger99</dc:creator>
      <dc:date>2023-03-15T10:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re-ordering Stock Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3137612#M111898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524744" data-lia-user-login="Digger99" class="lia-mention lia-mention-user"&gt;Digger99&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have creatd a simple sample, please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _1 = 'Table'[stock on shelf] - 'Table'[lead time]
RETURN
    EDATE ( TODAY (), _1 )
&lt;/LI-CODE&gt;
&lt;P&gt;Or a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _1 =MAX( 'Table'[stock on shelf] )-MAX( 'Table'[lead time])
RETURN
    EDATE ( TODAY (), _1 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&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 provide more details with your desired output and pbix file without privacy information (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 _ Polly&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>Fri, 17 Mar 2023 02:16:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3137612#M111898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-17T02:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re-ordering Stock Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3137709#M111903</link>
      <description>&lt;P&gt;All good, you only need to change it to D2-C2&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 02:45:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Re-ordering-Stock-Date-Format/m-p/3137709#M111903</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-17T02:45:47Z</dc:date>
    </item>
  </channel>
</rss>

