<?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: Calculating average of sales rep activity based on the sume activity of each in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075499#M161817</link>
    <description>&lt;P&gt;Really appreciate your willingness, but i would need to post really a lot of data and cant anomize them so easily... Honestly - i already looked on the net, and all solutions were so simple and i felt... strange as i could not solve it by myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; but now i see: either its my model (most probably) or ... No idea &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 08:29:07 GMT</pubDate>
    <dc:creator>al1981</dc:creator>
    <dc:date>2024-08-02T08:29:07Z</dc:date>
    <item>
      <title>Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4074222#M161761</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have table called ContactsFolder, inside i have already calculated values for contacts of customer (if phone call is done from SalesRep to customer, its value 1, if onsite meet, its value 2 etc). Based on that i have calculated monthly average per day (sum of all different activities devided by number of working days (calculated value in calendar table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue i have now is, that i would like to add column in pivot of average of all in this month in order to use it later in graphs (averga line for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;user&lt;/TD&gt;&lt;TD&gt;Activity&lt;/TD&gt;&lt;TD&gt;Average activity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;user 1&lt;/TD&gt;&lt;TD&gt;7.42&lt;/TD&gt;&lt;TD&gt;6.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;user 2&lt;/TD&gt;&lt;TD&gt;6.25&lt;/TD&gt;&lt;TD&gt;6.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;user 3&lt;/TD&gt;&lt;TD&gt;5.55&lt;/TD&gt;&lt;TD&gt;6.4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I wanted to do someting like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum[Activity]/counta[user] but its does not work for Activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If somebody can help me out... If i missed some info, please let me know...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 18:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4074222#M161761</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-01T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4074632#M161776</link>
      <description>&lt;P&gt;This measure calculates the average activity for each user.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AverageActivityPerUser = 
AVERAGEX(
    VALUES(ContactsFolder[User]), 
    CALCULATE(SUM(ContactsFolder[Activity]))
)&lt;/LI-CODE&gt;
&lt;P&gt;This measure calculates the overall average activity across all users for the selected month.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;OverallAverageActivity = 
AVERAGEX(
    VALUES(ContactsFolder[User]), 
    [AverageActivityPerUser]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 01:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4074632#M161776</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T01:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4074639#M161777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523197" data-lia-user-login="al1981" class="lia-mention lia-mention-user"&gt;al1981&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The average you need is based on the full table, so you need to traverse the full table data. You can check the following results.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUMX(ALL('Table'),[Activity])/COUNTAX(ALL('Table'),[user])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 01:51:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4074639#M161777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-02T01:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075211#M161794</link>
      <description>&lt;P&gt;Hi, thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp;and&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; but it looks i am missing some point here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in both cases, intelisese does not recognize Activity - this activitiy is calculation (sum of many different calucation) in the model, not column in the table... Table was example of pivot table i created based on the model... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 06:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075211#M161794</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-02T06:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075228#M161796</link>
      <description>&lt;P&gt;Can you paste the DAX? I may be able to troubleshoot it.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 06:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075228#M161796</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T06:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075247#M161797</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And this is Activity example&amp;nbsp;&lt;/P&gt;&lt;P&gt;(ps: ContactsFolder=CallsFolder)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Activity=([Calls Top FF]+[Calls Middle FF]+[Calls Top Phone/2]+[Calls Middle Phone/2])/[UserDays]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and example of&amp;nbsp;Calls Top FF=CALCULATE(DISTINCTCOUNT(CallsFolder[Call: Call Name]),TeamTarget[Team Target]="Top",CallsFolder[Channel]="Face to Face",'Call Type 1'[Call Type 1]="1 to 1 Detailing" || 'Call Type 1'[Call Type 1]="Leaflet only")&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 06:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075247#M161797</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-02T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075293#M161801</link>
      <description>&lt;P&gt;Since [Activity] is a measure it's already being aggregated. It may work if you remove the "CALCULATE(SUM(" with the closing "))"&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075293#M161801</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T07:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075320#M161804</link>
      <description>&lt;P&gt;Like this? as it returns me same avergare per user...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=AVERAGEX(&lt;BR /&gt;VALUES(CallsFolder[Owner Name]), (CallsFolder[Activity]))&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:26:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075320#M161804</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-02T07:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075338#M161805</link>
      <description>&lt;P&gt;Sorry, for the AVERAGEX it may be better doing a calculated column for the [Activity]. Then you would be able to average per user&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=AVERAGEX(VALUES(CallsFolder[Owner Name]), SUM('CallsFolder'[Activity_Calculated_Column]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AverageActivityPerUser = 
AVERAGEX(
    SUMMARIZE(
        CallsFolder,
        CallsFolder[Owner Name],
        "UserActivity", [Activity]
    ),
    [UserActivity]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075338#M161805</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T07:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075364#M161809</link>
      <description>&lt;P&gt;it could be i am lost &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; but creating calculated column for activity... I am not sure i get this... Acitivity is changing every month. I have dashboard with slicer and based on the month, activity is totally different... so really not sure how to change this from measure to calucated column... It might also significantly slow down model... in callsfolder i have now app 150.000 rows and this is only for 2 years now...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Activity=([Calls Top FF]+[Calls Middle FF]+[Calls Top Phone/2]+[Calls Middle Phone/2])/[UserDays]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and example of&amp;nbsp;Calls Top FF=CALCULATE(DISTINCTCOUNT(CallsFolder[Call: Call Name]),TeamTarget[Team Target]="Top",CallsFolder[Channel]="Face to Face",'Call Type 1'[Call Type 1]="1 to 1 Detailing" || 'Call Type 1'[Call Type 1]="Leaflet only")&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075364#M161809</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-02T07:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075373#M161810</link>
      <description>&lt;P&gt;try this new measure with summarize&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AverageActivityPerUser = 
AVERAGEX(
    SUMMARIZE(
        CallsFolder,
        CallsFolder[Owner Name],
        "UserActivity", [Activity]
    ),
    [UserActivity]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:46:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075373#M161810</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T07:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075458#M161813</link>
      <description>&lt;P&gt;hm...I get same result as "Activity" - average activity per month... clearly i missed something... I will need to re-check my model...&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 08:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075458#M161813</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-02T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075462#M161814</link>
      <description>&lt;P&gt;If you post some example data, I can try to setup the measure on my end.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 08:16:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075462#M161814</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T08:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075499#M161817</link>
      <description>&lt;P&gt;Really appreciate your willingness, but i would need to post really a lot of data and cant anomize them so easily... Honestly - i already looked on the net, and all solutions were so simple and i felt... strange as i could not solve it by myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; but now i see: either its my model (most probably) or ... No idea &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 08:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4075499#M161817</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-02T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average of sales rep activity based on the sume activity of each</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4103641#M162838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523197" data-lia-user-login="al1981" class="lia-mention lia-mention-user"&gt;al1981&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the sample pbix file to help you better?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 06:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-of-sales-rep-activity-based-on-the-sume/m-p/4103641#M162838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-16T06:10:06Z</dc:date>
    </item>
  </channel>
</rss>

