<?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: Error in start and end date blank values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568990#M31246</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;i tried however the same error shows again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 11:34:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-24T11:34:56Z</dc:date>
    <item>
      <title>Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568880#M31244</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find the time in days between two dates (Start date &amp;amp; End Date) as some fields can be blanks, I'm using the following measure:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Analysis Time (bussiness days) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;( TRUE(),Issues[Start Date]=BLANK()||Issues[End Date]=BLANK(), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADDCOLUMNS( CALENDAR ( Issues[Start Date].[Date],Issues[End Date].[Date]),"Day of Week", WEEKDAY( [Date], 1 ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Day of Week] &amp;lt;&amp;gt; 6&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; [Day of Week] &amp;lt;&amp;gt; 7 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, the results show an error&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 10:14:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568880#M31244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-24T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568915#M31245</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , it should be &lt;/P&gt;
&lt;P&gt;not(isblank(Issues[Start Date]))&amp;nbsp; &amp;amp;&amp;amp; not(isblank(Issues[End Date])) ,&lt;/P&gt;
&lt;P&gt;Then take a diff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for working diff refer to my file&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/o2v5ekfiw5057do/Working%20date%20between%20Dates%20Measure%20and%20Table.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/o2v5ekfiw5057do/Working%20date%20between%20Dates%20Measure%20and%20Table.pbix?dl=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or 2nd page of this file&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or refer this blog&lt;/P&gt;
&lt;P&gt;&lt;A href="https://curbal.com/blog/glossary/networkdays-dax" target="_blank"&gt;https://curbal.com/blog/glossary/networkdays-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 11:02:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568915#M31245</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-24T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568990#M31246</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;i tried however the same error shows again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 11:34:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1568990#M31246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-24T11:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569025#M31249</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , I tried same formula (as a new column) on my file having enddate null and it worked&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Business days = SWITCH(TRUE(), NOT(ISBLANK(Employee[Start Date])) &amp;amp;&amp;amp; NOT(ISBLANK(Employee[End Date])) , COUNTROWS(FILTER(
ADDCOLUMNS(CALENDAR([Start Date],[End Date]),"Weekday",WEEKDAY([Date])),[Weekday]
&amp;lt;6)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 12:05:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569025#M31249</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-24T12:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569066#M31252</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; I'm using Start dat calculated column as :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Start Date = CALCULATE(FIRSTNONBLANK(Tracker[New Value Start],1),FILTER(Tracker,Issues[Key]=Tracker[Key]&amp;amp;&amp;amp;Tracker[Old Value]="BA Team"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and End date column as :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;End Date = CALCULATE(FIRSTNONBLANK(Tracker[New Value Start],1),FILTER(Tracker,Issues[Key]=Tracker[Key]&amp;amp;&amp;amp;Tracker[Field]="status"&amp;amp;&amp;amp;Tracker[New Value]="Done"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;could that have any effect on the results even though the data type of both columns are the same &amp;gt; Date/time&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Dec 2020 12:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569066#M31252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-24T12:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569374#M31269</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Are these columns of measures. Hope they are columns. &lt;/P&gt;
&lt;P&gt;Is this column a date [New Value Start]?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also do not use ".Date", unless the column has timestamp&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 17:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569374#M31269</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-24T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569452#M31272</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try the following measure?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Analysis Time (bussiness days) = 
var __start =  MAX(Data[Start Date])
var __end =  MAX(Data[End Date])

return

IF(
    __start=BLANK() || __end=BLANK(),BLANK(),
    COUNTROWS(
        FILTER(
            CALENDAR(__start,__end),
            WEEKDAY([Date],1) &amp;lt; 6
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can you share some sample data and the expected result to have a clear understanding of your question?&lt;BR /&gt;You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.&lt;BR /&gt;____________________________________&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;How to paste sample data with your question?&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to get your questions answered quickly?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;_____________________________________&lt;BR /&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 20:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1569452#M31272</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-12-24T20:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in start and end date blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1571039#M31303</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;yes the columns are created of measures, also&amp;nbsp;&lt;SPAN&gt;[New Value Start] is a date column.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Dec 2020 09:59:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-start-and-end-date-blank-values/m-p/1571039#M31303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-27T09:59:05Z</dc:date>
    </item>
  </channel>
</rss>

