<?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: Replace two blank date fields with another date column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2377667#M61332</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302339" data-lia-user-login="NipawanV" class="lia-mention lia-mention-user"&gt;NipawanV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your&amp;nbsp;conditional statement will go&amp;nbsp;&lt;SPAN&gt;[Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Try this code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date3 = 
IF (
    AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ),
    activitypointers[modifiedon],
    IF (
        [Due Date (scheduledend)] = BLANK (),
        [Actual End Date],
        IF (
            [Actual End Date] = BLANK (),
            [Due Date (scheduledend)],
            [Actual End Date]
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 04:34:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-07T04:34:26Z</dc:date>
    <item>
      <title>Replace two blank date fields with another date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2370480#M60808</link>
      <description>&lt;P&gt;Hello, I created column formula called "Date3" to replace with date field in the other columns.&amp;nbsp; Every line went well give the correct results but on line 6 I used "AND" &amp;amp; "BLANK() to check two date fields if both are blank, it should return modified date.&amp;nbsp; But it's empty.&amp;nbsp; Here is the formula:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Date3 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Due Date (scheduledend)]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;[Actual End Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Actual End Date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;[Due Date (scheduledend)]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;AND([Due Date (scheduledend)], [Actual End Date]) = BLANK(), activitypointers[modifiedon],&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Actual End Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you kindly advise what wrong in the formula ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 15:36:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2370480#M60808</guid>
      <dc:creator>NipawanV</dc:creator>
      <dc:date>2022-03-02T15:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replace two blank date fields with another date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2370524#M60813</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302339" data-lia-user-login="NipawanV" class="lia-mention lia-mention-user"&gt;NipawanV&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;coalesce([Due Date (scheduledend)], [Actual End Date],[Due Date (scheduledend)],activitypointers[modifiedon])&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 15:50:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2370524#M60813</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-02T15:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replace two blank date fields with another date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2371346#M60859</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Many thanks but it doesn't work.&amp;nbsp; Apply the said line it doesn't show the result from line 7 as well. Line 7 in my formula if "Actual End Date" and "Activity Due Date " should pickup the result from "Actual End Date".&amp;nbsp; Now it's disappear.&lt;BR /&gt;&lt;BR /&gt;See result in Date4 that applied your formula. (I used "created on" for the time being as it's the text field.&amp;nbsp; coalesce() doesn't allow me to use "modified on" which is the &lt;STRONG&gt;date&lt;/STRONG&gt; field.) it doesn't return any date at all.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any more hints, please!!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 00:38:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2371346#M60859</guid>
      <dc:creator>NipawanV</dc:creator>
      <dc:date>2022-03-03T00:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace two blank date fields with another date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2377667#M61332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302339" data-lia-user-login="NipawanV" class="lia-mention lia-mention-user"&gt;NipawanV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your&amp;nbsp;conditional statement will go&amp;nbsp;&lt;SPAN&gt;[Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Try this code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date3 = 
IF (
    AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ),
    activitypointers[modifiedon],
    IF (
        [Due Date (scheduledend)] = BLANK (),
        [Actual End Date],
        IF (
            [Actual End Date] = BLANK (),
            [Due Date (scheduledend)],
            [Actual End Date]
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 04:34:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2377667#M61332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-07T04:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace two blank date fields with another date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2396913#M62575</link>
      <description>&lt;P&gt;Hello Rico,&lt;/P&gt;&lt;P&gt;many thanks for the revised code. i will run when i return to work next month &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;WBR, Nipawan&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 05:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2396913#M62575</guid>
      <dc:creator>NipawanV</dc:creator>
      <dc:date>2022-03-16T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace two blank date fields with another date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2420868#M64121</link>
      <description>&lt;P&gt;Hello Rico,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks indeed for the solution.&amp;nbsp; This is perfectly working well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With best regards,&lt;/P&gt;&lt;P&gt;Nipawan&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 08:35:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-two-blank-date-fields-with-another-date-column/m-p/2420868#M64121</guid>
      <dc:creator>NipawanV</dc:creator>
      <dc:date>2022-03-28T08:35:00Z</dc:date>
    </item>
  </channel>
</rss>

