<?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: Count numbers of days an employee worked in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-numbers-of-days-an-employee-worked/m-p/2655693#M78460</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Assuming that there's a relationship between the Attendance Table and Employee Table based on the ID column,&lt;/P&gt;&lt;P&gt;you can try creating the below measure -&lt;/P&gt;&lt;P&gt;Measure = calculate(count(Attendance),ALLEXCEPT(Table,Table'Name'),filter(Table,Attendance = "Present"))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Please accept the solution if this answers your query&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Avantika&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 12:58:08 GMT</pubDate>
    <dc:creator>Avantika-Thakur</dc:creator>
    <dc:date>2022-07-22T12:58:08Z</dc:date>
    <item>
      <title>Count numbers of days an employee worked</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-numbers-of-days-an-employee-worked/m-p/2655451#M78446</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hello I want to find the total days my employee worked, what is the formula for power bi given i have 2 tables , i want to create the column in the employee table , and the other table has list of daily attendance of each employee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so this is my attendance table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;id- name- absent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 -ari -True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 -ari -Present&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 -ari -Present&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 -james -True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 -james -True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 -james -Present&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i want in the employee table to add the days worked column to have:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;id -name -days worked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 -ari -2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 -james -1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 11:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-numbers-of-days-an-employee-worked/m-p/2655451#M78446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-22T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count numbers of days an employee worked</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-numbers-of-days-an-employee-worked/m-p/2655693#M78460</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Assuming that there's a relationship between the Attendance Table and Employee Table based on the ID column,&lt;/P&gt;&lt;P&gt;you can try creating the below measure -&lt;/P&gt;&lt;P&gt;Measure = calculate(count(Attendance),ALLEXCEPT(Table,Table'Name'),filter(Table,Attendance = "Present"))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Please accept the solution if this answers your query&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Avantika&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 12:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-numbers-of-days-an-employee-worked/m-p/2655693#M78460</guid>
      <dc:creator>Avantika-Thakur</dc:creator>
      <dc:date>2022-07-22T12:58:08Z</dc:date>
    </item>
  </channel>
</rss>

