<?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: EDATE for days or weeks in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413877#M26249</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255913" data-lia-user-login="daxer-almighty" class="lia-mention lia-mention-user"&gt;daxer-almighty&lt;/a&gt;&amp;nbsp;could you put that solution into my code?&amp;nbsp; Let's say I want to return 2 weeks or 14 days.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 20:47:51 GMT</pubDate>
    <dc:creator>Blake753</dc:creator>
    <dc:date>2020-10-05T20:47:51Z</dc:date>
    <item>
      <title>EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413812#M26240</link>
      <description>&lt;P&gt;I am recycling a function that works perfectly minus the EDATE function.&amp;nbsp; I am looking for the same thing as EDATE but I need it to operate as days or weeks (whichever one is easier) as opposed to months.&amp;nbsp; Is there a simple solution for this?&amp;nbsp; Here's my code for reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prod Metric 2 = var Ldate = DATE(YEAR(MAX('Date Slicer'[Pay Period])), MONTH(MAX('Date Slicer'[Pay Period])), DAY(max('Date Slicer'[Pay Period])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var Fdate = &lt;FONT color="#FF0000"&gt;EDATE(Ldate,-6)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var sumUCC = [Productivity]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(min(Dates[Date_Id])&amp;lt;Fdate, blank(), IF(min(Dates[Date_Id])&amp;gt;Ldate,blank(),sumUCC))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:55:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413812#M26240</guid>
      <dc:creator>Blake753</dc:creator>
      <dc:date>2020-10-05T19:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413870#M26248</link>
      <description>IF you have a date and you add integers (positive and negative) to it, the addition will return the day that many days after or before the date.</description>
      <pubDate>Mon, 05 Oct 2020 20:44:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413870#M26248</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2020-10-05T20:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413877#M26249</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255913" data-lia-user-login="daxer-almighty" class="lia-mention lia-mention-user"&gt;daxer-almighty&lt;/a&gt;&amp;nbsp;could you put that solution into my code?&amp;nbsp; Let's say I want to return 2 weeks or 14 days.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 20:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413877#M26249</guid>
      <dc:creator>Blake753</dc:creator>
      <dc:date>2020-10-05T20:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413880#M26250</link>
      <description>&lt;LI-CODE lang="csharp"&gt;var Fdate = Ldate - 14&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Oct 2020 20:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413880#M26250</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2020-10-05T20:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413898#M26251</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255913" data-lia-user-login="daxer-almighty" class="lia-mention lia-mention-user"&gt;daxer-almighty&lt;/a&gt;&amp;nbsp;Thank you that seems to work perfectly.&amp;nbsp; I do have a quick follow up question:&amp;nbsp; This works in a matrix format but I am trying to disply this info in a KPI visual as well.&amp;nbsp; The KPI visual is coming up blank, do you have any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 21:11:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1413898#M26251</guid>
      <dc:creator>Blake753</dc:creator>
      <dc:date>2020-10-05T21:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1415104#M26288</link>
      <description>Well, you should analyze your measure that you use in your visuals. The answer to your question is hidden in the logic of the measure. When you're dropping a measure onto a KPI visual, you should be aware of what data is visible to the formula. In other words, which data is filtered out and which data stays. If you understand this, you'll know why your formulas return what they return.</description>
      <pubDate>Tue, 06 Oct 2020 10:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/1415104#M26288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-06T10:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: EDATE for days or weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/3300800#M123108</link>
      <description>&lt;P&gt;Hey I know it's a bit late but the KPI visual usually has a color column. And you shouldn't modify that column. For example, I have this Gann chart for task planning called "Natural Green Construction Schedule" (source: &lt;A href="https://www.wps.com/academy/guide-to-construction-scope-of-work-templates-in-excel-quick-tutorials-1865947/" target="_blank" rel="noopener"&gt;https://www.wps.com/academy/guide-to-construction-scope-of-work-templates-in-excel-quick-tutorials-1865947/&lt;/A&gt;). You shouldn't modify the type column because then KPI visual will have no color input and will output white color. Add a column to the right of that column if you need to add more content.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 16:37:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EDATE-for-days-or-weeks/m-p/3300800#M123108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-24T16:37:11Z</dc:date>
    </item>
  </channel>
</rss>

