<?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: How to calculate average of worktime from slicer date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135216#M164255</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801805" data-lia-user-login="dtdat" class="lia-mention lia-mention-user"&gt;dtdat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can write measures like,&lt;/P&gt;&lt;P&gt;workingtime_avg := var tbl1= summarize (working_table,employee_id, "working_time" ,sum(workingtime_hrs))&lt;/P&gt;&lt;P&gt;return sumx(tbl1,working_time)/distinctcount(employee_id)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;workingday_avg := var tbl1= summarize (working_table,employee_id, "working_day" ,sum(workingtime_day))&lt;/P&gt;&lt;P&gt;return sumx(tbl1,working_day)/distinctcount(employee_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then I would appreciate a thumbs up&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and mark it as the solution&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 10:33:07 GMT</pubDate>
    <dc:creator>Selva-Salimi</dc:creator>
    <dc:date>2024-09-05T10:33:07Z</dc:date>
    <item>
      <title>How to calculate average of worktime from slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135022#M164249</link>
      <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My problem is the present working time of an employee in the company.&lt;BR /&gt;In the report, it has a date slicer, a count of working days, and the working hour of the employee in duration time.&lt;BR /&gt;Currently, I want to present average of working day and average working hour in duration time from date slicer.&lt;BR /&gt;&lt;BR /&gt;My data below&lt;BR /&gt;Table 'working_time' has columns:&lt;BR /&gt;emloyee_id,&amp;nbsp;workingdate,&amp;nbsp;worktime_hrs (worktime hour in day),&amp;nbsp;worktime_day (worktime day has default is 1)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Depend on table sum worktime group by employee, the sum worktime is the total value divided by 5 employees.&lt;BR /&gt;My expectation is the average of worktime_day should be (3+3+2+2+3) / 5 = 2.6 and the average of worktime_hrs should be (24+24+16+16+24) / 5 = 20.8.&lt;BR /&gt;But I don't know how to calculate this average value.&amp;nbsp;&lt;BR /&gt;I hope everyone will spare their precious time to help me solve this problem.&lt;BR /&gt;Thanks you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 08:29:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135022#M164249</guid>
      <dc:creator>dtdat</dc:creator>
      <dc:date>2024-09-05T08:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average of worktime from slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135216#M164255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801805" data-lia-user-login="dtdat" class="lia-mention lia-mention-user"&gt;dtdat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can write measures like,&lt;/P&gt;&lt;P&gt;workingtime_avg := var tbl1= summarize (working_table,employee_id, "working_time" ,sum(workingtime_hrs))&lt;/P&gt;&lt;P&gt;return sumx(tbl1,working_time)/distinctcount(employee_id)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;workingday_avg := var tbl1= summarize (working_table,employee_id, "working_day" ,sum(workingtime_day))&lt;/P&gt;&lt;P&gt;return sumx(tbl1,working_day)/distinctcount(employee_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then I would appreciate a thumbs up&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and mark it as the solution&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 10:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135216#M164255</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-09-05T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average of worktime from slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135317#M164261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785783" data-lia-user-login="Selva-Salimi" class="lia-mention lia-mention-user"&gt;Selva-Salimi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Wow, amazing!&lt;BR /&gt;I resolved this problem. You help me know more about&amp;nbsp;DAX query processing techniques.&lt;BR /&gt;I appreciate your help.&lt;BR /&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 11:30:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-of-worktime-from-slicer-date/m-p/4135317#M164261</guid>
      <dc:creator>dtdat</dc:creator>
      <dc:date>2024-09-05T11:30:56Z</dc:date>
    </item>
  </channel>
</rss>

