<?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 Testing the today() function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Testing-the-today-function/m-p/1154050#M17613</link>
    <description>&lt;P&gt;Hey Friends,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a dynamic measure that is built around the today function in dax. I want to test to see that it works at different points of the year, example, i want to make sure it'll work on Leap year.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to pass Power BI a date to use in that function for testing purposes?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Edit: I realized I could just pass the actual date (hardcode) I want instead of the today date and see if the rest of the code works. Too many hours at the keyboard &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 14:25:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-12T14:25:29Z</dc:date>
    <item>
      <title>Testing the today() function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Testing-the-today-function/m-p/1154050#M17613</link>
      <description>&lt;P&gt;Hey Friends,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a dynamic measure that is built around the today function in dax. I want to test to see that it works at different points of the year, example, i want to make sure it'll work on Leap year.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to pass Power BI a date to use in that function for testing purposes?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Edit: I realized I could just pass the actual date (hardcode) I want instead of the today date and see if the rest of the code works. Too many hours at the keyboard &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 14:25:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Testing-the-today-function/m-p/1154050#M17613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T14:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Testing the today() function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Testing-the-today-function/m-p/1154473#M17623</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what you are exactly looking for but you&amp;nbsp;can simply try DateDIFF and see if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In EXCEL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results are the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;STRONG&gt;Harsh Nathani&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&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;&amp;nbsp;&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;</description>
      <pubDate>Fri, 12 Jun 2020 05:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Testing-the-today-function/m-p/1154473#M17623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T05:16:15Z</dc:date>
    </item>
  </channel>
</rss>

