<?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 Calculate a date with filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-date-with-filters/m-p/853190#M6750</link>
    <description>&lt;P&gt;I'm at a loss. I've been searching for a few days but nothing works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call a series of files, one for every work week, and there's a column with dates that keep changing. I want to see the difference of dates in days between these changes.&lt;/P&gt;&lt;P&gt;I solved this earlier by giving an n and n-1 columns and then merging, with a unique tag and the n=n-1, but this makes the large and slow database impossible to handle. I'd like to do something like this, where I calculate what the date is, but the release is one earlier release.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our workweeks are in this format: 2019.01, 2019.02 and so on.&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(MAX(table[Date])&lt;BR /&gt;,FILTER('Table','Table'[Unique Tag]='Table'[Unique Tag])&lt;BR /&gt;,FILTER('Table','Table'[workweek]='Table'[workweek]-0.01))&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 15:26:22 GMT</pubDate>
    <dc:creator>HadBen</dc:creator>
    <dc:date>2019-11-21T15:26:22Z</dc:date>
    <item>
      <title>Calculate a date with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-date-with-filters/m-p/853190#M6750</link>
      <description>&lt;P&gt;I'm at a loss. I've been searching for a few days but nothing works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call a series of files, one for every work week, and there's a column with dates that keep changing. I want to see the difference of dates in days between these changes.&lt;/P&gt;&lt;P&gt;I solved this earlier by giving an n and n-1 columns and then merging, with a unique tag and the n=n-1, but this makes the large and slow database impossible to handle. I'd like to do something like this, where I calculate what the date is, but the release is one earlier release.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our workweeks are in this format: 2019.01, 2019.02 and so on.&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(MAX(table[Date])&lt;BR /&gt;,FILTER('Table','Table'[Unique Tag]='Table'[Unique Tag])&lt;BR /&gt;,FILTER('Table','Table'[workweek]='Table'[workweek]-0.01))&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:26:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-date-with-filters/m-p/853190#M6750</guid>
      <dc:creator>HadBen</dc:creator>
      <dc:date>2019-11-21T15:26:22Z</dc:date>
    </item>
  </channel>
</rss>

