<?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: Generating random dates between a time frame in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-random-dates-between-a-time-frame/m-p/2884396#M93463</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;According to your description, here is my solution.&lt;/P&gt;
&lt;P&gt;You can create a calculated column by using&amp;nbsp;&lt;SPAN&gt;RANDBETWEEN function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I made a sample for you to reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = RANDBETWEEN(DATE(2022,10,1),DATE(2022,11,20))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Remember that the data type of the "column" should be "DATE" or "DATE/TIME".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ xiaosun&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps,&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 03:27:17 GMT</pubDate>
    <dc:creator>v-xiaosun-msft</dc:creator>
    <dc:date>2022-11-04T03:27:17Z</dc:date>
    <item>
      <title>Generating random dates between a time frame</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-random-dates-between-a-time-frame/m-p/2883210#M93396</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a dummy dataset that does not have a date column, Is there a way of generating random dates between a time frame in Power BI?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:50:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-random-dates-between-a-time-frame/m-p/2883210#M93396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-03T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Generating random dates between a time frame</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-random-dates-between-a-time-frame/m-p/2884396#M93463</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;According to your description, here is my solution.&lt;/P&gt;
&lt;P&gt;You can create a calculated column by using&amp;nbsp;&lt;SPAN&gt;RANDBETWEEN function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I made a sample for you to reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = RANDBETWEEN(DATE(2022,10,1),DATE(2022,11,20))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Remember that the data type of the "column" should be "DATE" or "DATE/TIME".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ xiaosun&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps,&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 03:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-random-dates-between-a-time-frame/m-p/2884396#M93463</guid>
      <dc:creator>v-xiaosun-msft</dc:creator>
      <dc:date>2022-11-04T03:27:17Z</dc:date>
    </item>
  </channel>
</rss>

