<?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: date difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-difference/m-p/3441419#M130736</link>
    <description>&lt;P&gt;Currently, the dax expression is marking saturday and sunday as 0 rather than friday and saturday. For, friday and saturday change WEEKDAY([Date], 2) to WEEKDAY([Date], 1). This will mark friday as 6 and saturday as 7 instead of marking friday as 5, saturday as 6 and sunday as 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if one day has to be removed every time remove 1 from the total sum.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 11:06:54 GMT</pubDate>
    <dc:creator>ChiragGarg2512</dc:creator>
    <dc:date>2023-09-21T11:06:54Z</dc:date>
    <item>
      <title>date difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-difference/m-p/3440995#M130704</link>
      <description>&lt;P&gt;i have the following data&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want the to exclude friday and saturday also o want to exclude the start date and start counting from the next day&lt;BR /&gt;so want to show the date diff as 3 not 4&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;please help and thank you&amp;nbsp;&amp;nbsp;&lt;BR /&gt;i wrote in date the following&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;workdays = 

var TBL_DATE=CALENDAR(sheet[start date],sheet{end date])
var TBL_FINALDATE= ADDCOLUMNS(TBL_DATE,"WorkingDate",IF(WEEKDAY([Date],2)&amp;gt;=6,0,1))
return
SUMX(TBL_FINALDATE,IF([WorkingDate]=1,1,0))​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;this is how it looks now&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;start date&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;end date&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;date diff&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23-05-2023 10:07:11&lt;/TD&gt;&lt;TD&gt;28-05-2023 14:07:11&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Sep 2023 06:54:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-difference/m-p/3440995#M130704</guid>
      <dc:creator>mina97</dc:creator>
      <dc:date>2023-09-21T06:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-difference/m-p/3441419#M130736</link>
      <description>&lt;P&gt;Currently, the dax expression is marking saturday and sunday as 0 rather than friday and saturday. For, friday and saturday change WEEKDAY([Date], 2) to WEEKDAY([Date], 1). This will mark friday as 6 and saturday as 7 instead of marking friday as 5, saturday as 6 and sunday as 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if one day has to be removed every time remove 1 from the total sum.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 11:06:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-difference/m-p/3441419#M130736</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-21T11:06:54Z</dc:date>
    </item>
  </channel>
</rss>

