<?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: Calendar include blanks in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2390905#M62181</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="342511" data-lia-user-login="ringovski" class="lia-mention lia-mention-user"&gt;ringovski&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Work Day = if( not(isblank([Pick Up Date])) &amp;amp;&amp;amp; not(isblank([Actual Delivered Date])) , COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(Table[Pick Up Date],Table[Actual Delivered Date]),"WorkDay", if(WEEKDAY([Date],2) &amp;lt;6,1,0)),[WorkDay] =1)), blank())&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 02:33:59 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-14T02:33:59Z</dc:date>
    <item>
      <title>Calendar include blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2390833#M62180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a start &amp;amp; end date with some blanks in the rows which I would like included, I need to handle them differently in the visual layer. However the DAX calendar function says blanks are not allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding a IF(ISBLANK()) but this returns a error saying end date must be larger than start date, so I'm out of ideas now.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Delivery Days = 
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            CALENDAR ( 
                'Toll_Shipments'[Pick Up Date],
                Toll_Shipments[Actual Delivered Date]
                  ),
            "Is Weekday",WEEKDAY([date],2)&amp;lt;6
            ,"Is Holiday", CONTAINS('Holiday Dates','Holiday Dates'[Dates],[Date] )
        ),
        [Is Holiday] = FALSE() 
           &amp;amp;&amp;amp; [Is Weekday] = TRUE()
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Thanks for any ideas or assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 01:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2390833#M62180</guid>
      <dc:creator>ringovski</dc:creator>
      <dc:date>2022-03-14T01:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar include blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2390905#M62181</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="342511" data-lia-user-login="ringovski" class="lia-mention lia-mention-user"&gt;ringovski&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Work Day = if( not(isblank([Pick Up Date])) &amp;amp;&amp;amp; not(isblank([Actual Delivered Date])) , COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(Table[Pick Up Date],Table[Actual Delivered Date]),"WorkDay", if(WEEKDAY([Date],2) &amp;lt;6,1,0)),[WorkDay] =1)), blank())&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 02:33:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2390905#M62181</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-14T02:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar include blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2396755#M62563</link>
      <description>&lt;P&gt;Thanks for reply should have thought that myself.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 03:44:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2396755#M62563</guid>
      <dc:creator>ringovski</dc:creator>
      <dc:date>2022-03-16T03:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar include blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2841153#M90794</link>
      <description>&lt;P&gt;Does the code fixed your problem? I come across to have error using the code above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 03:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-include-blanks/m-p/2841153#M90794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T03:03:23Z</dc:date>
    </item>
  </channel>
</rss>

