<?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 Averagex vs Division (which one for calculating Tickets per Working Day) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3310373#M123733</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry if it's a stupid question, I would like to calculate the number of tickets per working day.&lt;/P&gt;&lt;P&gt;Should I be using Averagex(Working_Days, Tickets) or Divide (Tickets, Working_Days)? and Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 14:23:53 GMT</pubDate>
    <dc:creator>y5famfnatudu</dc:creator>
    <dc:date>2023-06-30T14:23:53Z</dc:date>
    <item>
      <title>Averagex vs Division (which one for calculating Tickets per Working Day)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3310373#M123733</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry if it's a stupid question, I would like to calculate the number of tickets per working day.&lt;/P&gt;&lt;P&gt;Should I be using Averagex(Working_Days, Tickets) or Divide (Tickets, Working_Days)? and Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3310373#M123733</guid>
      <dc:creator>y5famfnatudu</dc:creator>
      <dc:date>2023-06-30T14:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex vs Division (which one for calculating Tickets per Working Day)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3311434#M123806</link>
      <description>&lt;P&gt;Hello Simon,&lt;/P&gt;
&lt;P&gt;Quite an interesting question actually &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "correct" method to use would depend on your exact requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key points to be aware of (I'm making some assumptions about how you've defined Working_Days and Tickets):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;AVERAGEX disregards any rows of the table supplied in the 1st argument where the 2nd argument is blank. In your case, this would have the effect of dividing Tickets by the count of working days where Tickets is nonblank.&lt;/LI&gt;
&lt;LI&gt;The DIVIDE method would include all Working Days regardless of the values of Tickets&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Personally, I prefer to use the DIVIDE method as I would generally want to count all Working Days regardless of whether Tickets has a nonblank value on any given date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To illustrate,&amp;nbsp;I have attached a small PBIX example. For this example, let's assume that Working Days are Mon-Fri.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OwenAuger_1-1688295084327.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/936150iAB553DE3E58DB2DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="OwenAuger_1-1688295084327.png" alt="OwenAuger_1-1688295084327.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The two important measures to illustrate the difference are:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# Tickets per Working Day AVERAGEX = 
AVERAGEX (
    FILTER ( 'Date', 'Date'[Work Day] = 1 ),
    [# Tickets]
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;# Tickets per Working Day DIVIDE = 
DIVIDE ( [# Tickets], [Working Days Count] )&lt;/LI-CODE&gt;
&lt;P&gt;In this example, over the first 7 days of January 2023:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;# Tickets&lt;/STRONG&gt; = 17&lt;/LI&gt;
&lt;LI&gt;Number of working days on which &lt;STRONG&gt;# Tickets &lt;/STRONG&gt;is nonblank = 4 (Mon, Wed, Thu, Fri)&lt;/LI&gt;
&lt;LI&gt;Number of working days total = 5 (Mon-Fri)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;AVERAGEX&lt;/STRONG&gt; measure returns 17 / 4 = &lt;STRONG&gt;4.25&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;DIVIDE&lt;/STRONG&gt; measure returns 17 / 5 = &lt;STRONG&gt;3.40&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 10:59:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3311434#M123806</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-07-02T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex vs Division (which one for calculating Tickets per Working Day)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3311482#M123813</link>
      <description>&lt;P&gt;WOW&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6799"&gt;@OwenAuger&lt;/a&gt;&amp;nbsp;, a great description for how it works, I really appreciate it so much.&lt;/P&gt;&lt;P&gt;Regards, Simon&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 14:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-vs-Division-which-one-for-calculating-Tickets-per/m-p/3311482#M123813</guid>
      <dc:creator>y5famfnatudu</dc:creator>
      <dc:date>2023-07-02T14:07:32Z</dc:date>
    </item>
  </channel>
</rss>

