<?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: Identify names if there is a missing entry in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242399#M167958</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Considering you have table and relationship similar as shown below:&lt;BR /&gt;&lt;BR /&gt;Employee Table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;TimeTable:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calendar Table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Relationship :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count the missing employee, try below code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MissingNamesCount = 
CALCULATE(
    COUNTROWS(Emp),
    EXCEPT(
        Emp,
        VALUES(TimeTab[Name])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;Desired Output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Concatenating all the missing names in time table, try below code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MissingNames = 
VAR AllEmployees = VALUES(Emp[Name])
VAR ReportedEmployees = CALCULATETABLE(VALUES(TimeTab[Name]), ALL(TimeTab), TimeTab[Date] = MAX(TimeTab[Date]))
VAR MissingEmployees = EXCEPT(AllEmployees, ReportedEmployees)
RETURN 
IF(
    HASONEVALUE(CalTab[Date]),
    CONCATENATEX(MissingEmployees, [Name], ", ")
)&lt;/LI-CODE&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please accept it as a solution.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 03:57:30 GMT</pubDate>
    <dc:creator>shafiz_p</dc:creator>
    <dc:date>2024-10-15T03:57:30Z</dc:date>
    <item>
      <title>Identify names if there is a missing entry in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242265#M167951</link>
      <description>&lt;P&gt;I have two tables. One table contains a list of names (Employee). The other table (Time)&amp;nbsp;is populated every day with names and hours worked. What I want to find out is if someone's name is completely missing for any given date. In other words, if somebody forgot to report that person's time, there would be no record of that person on that date within the Time table. &amp;nbsp;How do I create a Measure that can identify if a person's name is missing?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 02:29:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242265#M167951</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-10-15T02:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Identify names if there is a missing entry in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242379#M167955</link>
      <description>&lt;P&gt;Hi, I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&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;
&lt;LI-CODE lang="markup"&gt;Total work hour: = 
SUM( work_hour_fact[work-hour] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NOT work employee: = 
VAR _t =
    SUMMARIZE (
        work_hour_fact,
        employee_dim[employee]
    )
VAR _all =
    ALL ( employee_dim[employee] )
VAR _result =
    EXCEPT (
        _all,
        _t
    )
RETURN
    CONCATENATEX (
        _result,
        employee_dim[employee],
        ", "
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/except-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;EXCEPT function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NOT work employee: =
VAR _t =
    SUMMARIZE (
        work_hour_fact,
        employee_dim[employee]
    )
VAR _all =
    ALL ( employee_dim[employee] )
VAR _result =
    EXCEPT (
        _all,
        _t
    )
RETURN
    CONCATENATEX (
        _result,
        employee_dim[employee],
        ", "
    )
&lt;/LI-CODE&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>Tue, 15 Oct 2024 03:39:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242379#M167955</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-10-15T03:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identify names if there is a missing entry in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242399#M167958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Considering you have table and relationship similar as shown below:&lt;BR /&gt;&lt;BR /&gt;Employee Table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;TimeTable:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calendar Table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Relationship :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count the missing employee, try below code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MissingNamesCount = 
CALCULATE(
    COUNTROWS(Emp),
    EXCEPT(
        Emp,
        VALUES(TimeTab[Name])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;Desired Output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Concatenating all the missing names in time table, try below code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MissingNames = 
VAR AllEmployees = VALUES(Emp[Name])
VAR ReportedEmployees = CALCULATETABLE(VALUES(TimeTab[Name]), ALL(TimeTab), TimeTab[Date] = MAX(TimeTab[Date]))
VAR MissingEmployees = EXCEPT(AllEmployees, ReportedEmployees)
RETURN 
IF(
    HASONEVALUE(CalTab[Date]),
    CONCATENATEX(MissingEmployees, [Name], ", ")
)&lt;/LI-CODE&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please accept it as a solution.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 03:57:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242399#M167958</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-10-15T03:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Identify names if there is a missing entry in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242405#M167960</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To assist you effectively, it would be helpful to have more context regarding your query, such as a sample dataset, the structure of your data model, and an example of the desired outcome. This information will enable me to understand your problem better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my initial understanding of your query, you can create a calculated table using the DAX formula provided below. This table will enumerate the employee names and the corresponding dates where no hours are logged.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Missed Logging Table = 
 	SELECTCOLUMNS(
		FILTER(
			ADDCOLUMNS(
				CROSSJOIN(
					VALUES(EmployeeTbl[EmployeeName]),
					VALUES(LogTbl[Date])
				),
				"LoggedHours", CALCULATE(SUM(LogTbl[HoursWorked]))
			),
			[LoggedHours] = BLANK()
		),
		"Employee Name", [EmployeeName],
		"Missed Logging Date", [Date]
	)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subsequently, you can display the data in the following manner:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 03:59:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4242405#M167960</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-10-15T03:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Identify names if there is a missing entry in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4255221#M168562</link>
      <description>&lt;P&gt;Almost... I'm getting lots of names, but I also have a column within the employee master table that has a true/false statement. "IsActive" let's me know whether they are currnently employeed by us or not.&amp;nbsp; But when I filter it, it's not filtering.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt; work employee: =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_t&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'bihj HeavyJob_TimecardCostcodeLaborResource'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nb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AN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CONCATENATEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;_result&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'bihj HeavyJob_JM_BUEmployee'&lt;/SPAN&gt;&lt;SPAN&gt;[EmployeeCode]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Oct 2024 01:18:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-names-if-there-is-a-missing-entry-in-another-table/m-p/4255221#M168562</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-10-24T01:18:48Z</dc:date>
    </item>
  </channel>
</rss>

