<?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: Sales / Business Day for current month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2372835#M60969</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple and elegant solution. Works like a charm. Thanks very much!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 14:28:34 GMT</pubDate>
    <dc:creator>pwe5000</dc:creator>
    <dc:date>2022-03-03T14:28:34Z</dc:date>
    <item>
      <title>Sales / Business Day for current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2371240#M60854</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a measure that calculates sales per business day for each month. It just divides the total sales for the month by the number of business days in the month. Here is the DAX for that measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales/Bus Day = 
DIVIDE([Sales, All Channels], CALCULATE(
	SUM('Date Table'[Workday Flag]),
	'Date Table'[Workday Flag] IN { 1 }
))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C&lt;SPAN&gt;ALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM('Date Table'[Workday Flag]),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Date Table'[Workday Flag] IN { 1 }&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;ensures that I'm measuring sales per&amp;nbsp;&lt;EM&gt;business&lt;/EM&gt; day and not simply sales per day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works great if the month is already finished, but for the current month, it shows a very low figure, because not all the sales for the month have happened yet. How can I make a single measure that works both for months that have finished&amp;nbsp;&lt;EM&gt;and&lt;/EM&gt; for the current month?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 22:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2371240#M60854</guid>
      <dc:creator>pwe5000</dc:creator>
      <dc:date>2022-03-02T22:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sales / Business Day for current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2371613#M60867</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356424" data-lia-user-login="pwe5000" class="lia-mention lia-mention-user"&gt;pwe5000&lt;/a&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Sales/Bus Day = &lt;BR /&gt;DIVIDE([Sales, All Channels], CALCULATE(&lt;BR /&gt;SUM('Date Table'[Workday Flag]),&lt;BR /&gt;filter('Date Table','Date Table'[Workday Flag] IN { 1 } &amp;amp;&amp;amp; 'Date Table'[Date] &amp;lt; today())&lt;BR /&gt;))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;calculate(averageX(values('Date Table'[Date]),[Sales, All Channels]) ,'Date Table'[Workday Flag] IN { 1 } )&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 03:21:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2371613#M60867</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-03T03:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sales / Business Day for current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2372835#M60969</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple and elegant solution. Works like a charm. Thanks very much!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Business-Day-for-current-month/m-p/2372835#M60969</guid>
      <dc:creator>pwe5000</dc:creator>
      <dc:date>2022-03-03T14:28:34Z</dc:date>
    </item>
  </channel>
</rss>

