<?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: DAX for empty date column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2490342#M68544</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;To create a new column, use:&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;column = IF ([Date] = blank (), the Date (2022,3,31), [Date])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;If you have a lot of conditions, you can also use &lt;A href="https://docs.microsoft.com/en-us/dax/switch-function-dax" target="_self"&gt;switch&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 08:04:17 GMT</pubDate>
    <dc:creator>v-yalanwu-msft</dc:creator>
    <dc:date>2022-05-03T08:04:17Z</dc:date>
    <item>
      <title>DAX for empty date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2485293#M68202</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set with a date column (DD.MM.YYYY), a year column and a quarter column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to primarily use the date column for time intelligence. However, some rows in the date column are empty.&amp;nbsp;The year (i.e. 2022) and quarter (i.e. 1,2 etc) columns always have data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I want to link to year and quarter columns in the instance where the date columns are empty, to create an artifical date (i.e. 31.03.2022 for Q1, 2022) .&lt;/P&gt;&lt;P&gt;I was considering doing this via an IF Statement with multiple conditions? What do you suggest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 09:11:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2485293#M68202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-29T09:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for empty date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2485333#M68205</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;If you have blank rows in your date table than this is not a proper date table and you won't be able use time intelligence with it. You need to clean your data before you bring it to the model.&lt;BR /&gt;&lt;BR /&gt;Check this for a good reference for a simple date table:&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;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2485333#M68205</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-29T08:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for empty date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2490342#M68544</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;To create a new column, use:&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;column = IF ([Date] = blank (), the Date (2022,3,31), [Date])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;If you have a lot of conditions, you can also use &lt;A href="https://docs.microsoft.com/en-us/dax/switch-function-dax" target="_self"&gt;switch&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 08:04:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-empty-date-column/m-p/2490342#M68544</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-05-03T08:04:17Z</dc:date>
    </item>
  </channel>
</rss>

