<?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: Changing from Today to specific Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-from-Today-to-specific-Date/m-p/964684#M11418</link>
    <description>&lt;P&gt;Perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; VAR __Max =&amp;nbsp;&lt;SPAN&gt;MAX('Table'[Date])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; VAR __Value = LOOKUP('Table'[Inventory Value],'Table'[Date],__Max)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; divide(__Value),[Last 365 Days COGS Amount]) * 365&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Difficult to be sure,&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 12:57:28 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-03-09T12:57:28Z</dc:date>
    <item>
      <title>Changing from Today to specific Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-from-Today-to-specific-Date/m-p/964665#M11416</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new here and just beginning with Dax. I currently have formula that works well, but I'm having to make some adjustments to work with a test file. The test file data ends on January 18, 2018. Here is the formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Average Days to Sell = divide([Inventory Valuation (Today)],[Last 365 Days COGS Amount]) * 365&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How would I write this to work with the final day being January 18, 2018 instead of (Today)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:52:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-from-Today-to-specific-Date/m-p/964665#M11416</guid>
      <dc:creator>XeperRx</dc:creator>
      <dc:date>2020-03-09T12:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing from Today to specific Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-from-Today-to-specific-Date/m-p/964684#M11418</link>
      <description>&lt;P&gt;Perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; VAR __Max =&amp;nbsp;&lt;SPAN&gt;MAX('Table'[Date])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; VAR __Value = LOOKUP('Table'[Inventory Value],'Table'[Date],__Max)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; divide(__Value),[Last 365 Days COGS Amount]) * 365&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Difficult to be sure,&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:57:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-from-Today-to-specific-Date/m-p/964684#M11418</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-09T12:57:28Z</dc:date>
    </item>
  </channel>
</rss>

