<?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: DATEADD with GAPS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347174#M24170</link>
    <description>OK. Still, this is not a reason to not have a proper model and date table. However, when there's no corresponding date in the previous year, which day would you then want to return? It's not enough to say "i dont care if i am comparing 01/12/2020 with 01/13/2019, doesnt need to match exactly the day, what i need is continuous results," because programming is all about giving precise rules of calculation. So, in order for somebody to be able to give you an answer, you have to precisely define what the calculation must do when there's no corresponding date in the year before.</description>
    <pubDate>Fri, 04 Sep 2020 11:00:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-04T11:00:36Z</dc:date>
    <item>
      <title>DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1342307#M24031</link>
      <description>&lt;P&gt;Hi guys, im struggling with Time functions&amp;nbsp; all day long. I have a date column with gaps, i mean, it doesnt have weekends for example, only data for workdays, so it skip some days, the problem is that i need to create a column to compare present data with last year data. The problem is always when a use DATEADD the results comes with gaps, i dont care if i am comparing 01/12/2020 with 01/13/2019, doesnt need to match exactly the day, what i need is continuous results, it is only an aproximation, but no matter what i do the results come with gaps, ive tried many different ways, could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure used to calculate the column:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Comissão ano anterior = CALCULATE(SUM('Comissão'[Comissão]),ALL('Comissão'), DATEADD('Comissão'[Data Liq.],-1,YEAR))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Sep 2020 20:43:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1342307#M24031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-02T20:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1342392#M24034</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 21:18:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1342392#M24034</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-02T21:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1343828#M24083</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if you want to have date add you need to have continuous dates. prefer a date calendar &lt;/P&gt;
&lt;P&gt;Comissão ano anterior = CALCULATE(SUM('Comissão'[Comissão]),ALL('Comissão'), DATEADD('Date'[Data],-1,YEAR))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In date calendar, if you want to work with work days&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calendar-4-5-Power/ba-p/1187766" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calendar-4-5-Power/ba-p/1187766&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Some time you case use date in place of dateadd -&lt;A href="https://community.powerbi.com/t5/Community-Blog/Date-as-Dateadd-Decoding-Date-and-Calendar-5-5-Power-BI-Turning/ba-p/1187827" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Date-as-Dateadd-Decoding-Date-and-Calendar-5-5-Power-BI-Turning/ba-p/1187827&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer : &lt;BR /&gt;&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi" target="_blank"&gt;https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See if my webinar on Time Intelligence can help: &lt;A href="https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184" target="_blank"&gt;https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate your Kudos.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 10:17:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1343828#M24083</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-03T10:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1343944#M24087</link>
      <description>DATEADD is a time-intel function and for correct results it needs a proper date table with a no-gap sequence of dates. Please create one and connect to your table. Then you can use DAX to give you what you need. If you use PBI and DAX the way they were intended to be used, you'll have an easy time creating good models.</description>
      <pubDate>Thu, 03 Sep 2020 10:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1343944#M24087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T10:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1344479#M24098</link>
      <description>&lt;P&gt;Hi , appreciate, i have tried that, but when a simply put a calendar table formated and etcetera, my data is discontinuous, and when a shift whit dateadd, it looks for date that doesnt necessarily exists in past year, so for example 01/12/2020 i have data, but dateadd dont find value for 01/12/2019, and the problem continues.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 12:29:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1344479#M24098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T12:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347174#M24170</link>
      <description>OK. Still, this is not a reason to not have a proper model and date table. However, when there's no corresponding date in the previous year, which day would you then want to return? It's not enough to say "i dont care if i am comparing 01/12/2020 with 01/13/2019, doesnt need to match exactly the day, what i need is continuous results," because programming is all about giving precise rules of calculation. So, in order for somebody to be able to give you an answer, you have to precisely define what the calculation must do when there's no corresponding date in the year before.</description>
      <pubDate>Fri, 04 Sep 2020 11:00:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347174#M24170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-04T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347576#M24178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, you are perfectly right my friend, im newbie at power bi, but i know the rules of programming and it would be easy if it was in another language, but it isnt. What i was trying to say is that if i have a date x/x/2020 my problem would be solved just shifting 360 days ago and comparing with existing results that exists! but the function keeps jumping days that doesnt exists in a year before and present year, you have an idea of how to do it? Thanks ever since.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps: im comparing values of 2 column with values 360 days before or a year before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 12:28:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347576#M24178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-04T12:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD with GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347669#M24183</link>
      <description>Maybe you just want to compare to the very last day last year that exists before the day you're on (shifted a year back)? This seems to me to be a reasonable idea...</description>
      <pubDate>Fri, 04 Sep 2020 13:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-with-GAPS/m-p/1347669#M24183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-04T13:03:41Z</dc:date>
    </item>
  </channel>
</rss>

