<?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: create new column to mirror existing date column and set value for any nulls in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467273#M67052</link>
    <description>&lt;P&gt;Sure, DATEADD is your friend.&lt;BR /&gt;Check this:&lt;BR /&gt;&lt;A href="https://dax.guide/dateadd/" target="_blank" rel="noopener"&gt;https://dax.guide/dateadd/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 18:01:46 GMT</pubDate>
    <dc:creator>SpartaBI</dc:creator>
    <dc:date>2022-04-20T18:01:46Z</dc:date>
    <item>
      <title>create new column to mirror existing date column and set value for any nulls</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467137#M67046</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The current SQL dataset I am working on&amp;nbsp; has several null or blank entries under one of my date columns as they technically have no set end date for their project completion. I am working on Gannt&amp;nbsp;chart visual. However, since some items are blank or null nothing is rendered for these items on the visual. My intent is to create a new column that will copy the valid values for the end date column, and replace any blanks or nulls with a value set five years out from todays date or Jan 1 of whatever the current year is. I also want to ensure that should a value be added later on in the SQL database that once I refresh my report it will include the new date and not hold on to the previous date stamp.&amp;nbsp;Does anyone know if this is possible or perhaps if there is an easier method of doing this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 16:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467137#M67046</guid>
      <dc:creator>craig615</dc:creator>
      <dc:date>2022-04-20T16:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: create new column to mirror existing date column and set value for any nulls</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467217#M67049</link>
      <description>&lt;P&gt;It is possible like you said in DAX in the model.&lt;BR /&gt;It's also possible in Power Query to replace null with whatever value or add a column to check like in the model with DAX. In Power Query you got GUI for these operations.&lt;BR /&gt;The best options is alwyas to push it as back as you can to the the data source, as in do the change there in a view.&lt;BR /&gt;But all options are valid and possible.&lt;BR /&gt;&lt;BR /&gt;In dax, you just need to create a new cloumn like:&lt;BR /&gt;IF(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;isblank('your_table'[your_date_cloumn]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;today(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;'your_table'[your_date_column]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467217#M67049</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-20T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: create new column to mirror existing date column and set value for any nulls</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467263#M67051</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This is great thanks for the help . This &lt;/SPAN&gt;&lt;SPAN&gt;is really&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;really close. It created a new column no problem. It copied all the good data from the first column&amp;nbsp;over perfectly. It entered a value for any nulls or missing data, awesome. The only thing missing now &lt;/SPAN&gt;&lt;SPAN&gt;is that&amp;nbsp;it set all the nulls to today. Do you know what the syntax would be to push it out 5 years or realistically any specified allotment of time? Once again thanks for the help so far I really appreciate&amp;nbsp;it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467263#M67051</guid>
      <dc:creator>craig615</dc:creator>
      <dc:date>2022-04-20T17:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: create new column to mirror existing date column and set value for any nulls</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467273#M67052</link>
      <description>&lt;P&gt;Sure, DATEADD is your friend.&lt;BR /&gt;Check this:&lt;BR /&gt;&lt;A href="https://dax.guide/dateadd/" target="_blank" rel="noopener"&gt;https://dax.guide/dateadd/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 18:01:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-new-column-to-mirror-existing-date-column-and-set-value/m-p/2467273#M67052</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-20T18:01:46Z</dc:date>
    </item>
  </channel>
</rss>

