<?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 Filtering the number of days between today and a specific date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2717860#M82764</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to obtain the following number as a measure for me to do some additional calculations: number of days between today and a specific date within the data set.&lt;BR /&gt;&lt;BR /&gt;I have added a calculated column in my date calendar to get the time difference in days between today and all the available days. Then I made another column with a marker for the date I have to take into account (not the first or last date of the dataset, so I can't use MIN or MAX as a get around).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can make a card with this as long as I use an additional filter to the visual (filter set on the 2nd column I mentioned). To get the same number as a measure, I thought I could use the following filter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The error message I get doesn't make sense as of now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I get around this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pauline.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 16:26:18 GMT</pubDate>
    <dc:creator>Berl21</dc:creator>
    <dc:date>2022-08-22T16:26:18Z</dc:date>
    <item>
      <title>Filtering the number of days between today and a specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2717860#M82764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to obtain the following number as a measure for me to do some additional calculations: number of days between today and a specific date within the data set.&lt;BR /&gt;&lt;BR /&gt;I have added a calculated column in my date calendar to get the time difference in days between today and all the available days. Then I made another column with a marker for the date I have to take into account (not the first or last date of the dataset, so I can't use MIN or MAX as a get around).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can make a card with this as long as I use an additional filter to the visual (filter set on the 2nd column I mentioned). To get the same number as a measure, I thought I could use the following filter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The error message I get doesn't make sense as of now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I get around this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pauline.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 16:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2717860#M82764</guid>
      <dc:creator>Berl21</dc:creator>
      <dc:date>2022-08-22T16:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering the number of days between today and a specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2719492#M82867</link>
      <description>&lt;P&gt;I think you could use&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# of days =
VAR startDate =
    CALCULATE ( SELECTEDVALUE ( 'Date'[Date] ), 'Date'[Start date] = "Start date" )
RETURN
    DATEDIFF ( startDate, TODAY (), DAY )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 08:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2719492#M82867</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-23T08:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering the number of days between today and a specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2719527#M82871</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;I tried this just now but it doesn't seem to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, I did find the solution just now as well. It is way easier than all I could think of &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Days since official start = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESBETWEEN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DateTable[DayDate]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;04&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;20&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 08:42:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-the-number-of-days-between-today-and-a-specific-date/m-p/2719527#M82871</guid>
      <dc:creator>Berl21</dc:creator>
      <dc:date>2022-08-23T08:42:01Z</dc:date>
    </item>
  </channel>
</rss>

