<?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 Power BI - 2 Part Matching Values / Definition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4730707#M181215</link>
    <description>&lt;P&gt;I'm struggling to know exactly what to ask for this question. I have a data set with unique enrollment identifiers, showing employment status someone's entry and exit in our program as well as occasional updates during the program.&lt;/P&gt;&lt;P&gt;What I am trying to do is find a measure that I think will be three-parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Find matching values within the Unique Enrollment Identifier&lt;/P&gt;&lt;P&gt;2. Find if the matching values have an Entry and Exit&lt;/P&gt;&lt;P&gt;3. Compare if the Employment Status has changed from Entry to Exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end goal is to create a visual showing changes in employment status from entry to exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a screenshot example of the data for more clairty. Would appreciate guidance on the most effective formualas to get there!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 20:44:30 GMT</pubDate>
    <dc:creator>muom</dc:creator>
    <dc:date>2025-06-12T20:44:30Z</dc:date>
    <item>
      <title>Power BI - 2 Part Matching Values / Definition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4730707#M181215</link>
      <description>&lt;P&gt;I'm struggling to know exactly what to ask for this question. I have a data set with unique enrollment identifiers, showing employment status someone's entry and exit in our program as well as occasional updates during the program.&lt;/P&gt;&lt;P&gt;What I am trying to do is find a measure that I think will be three-parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Find matching values within the Unique Enrollment Identifier&lt;/P&gt;&lt;P&gt;2. Find if the matching values have an Entry and Exit&lt;/P&gt;&lt;P&gt;3. Compare if the Employment Status has changed from Entry to Exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end goal is to create a visual showing changes in employment status from entry to exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a screenshot example of the data for more clairty. Would appreciate guidance on the most effective formualas to get there!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 20:44:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4730707#M181215</guid>
      <dc:creator>muom</dc:creator>
      <dc:date>2025-06-12T20:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - 2 Part Matching Values / Definition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4731277#M181230</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1289534" data-lia-user-login="muom" class="lia-mention lia-mention-user"&gt;muom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You're on the right track with your goal: comparing &lt;STRONG&gt;employment status&lt;/STRONG&gt; at &lt;STRONG&gt;Program Entry&lt;/STRONG&gt; versus &lt;STRONG&gt;Program Exit&lt;/STRONG&gt; for each &lt;STRONG&gt;Unique Enrollment Number&lt;/STRONG&gt;. Here's a step-by-step breakdown of how to build this in Power BI using DAX.&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Objectives&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Final Visual:&lt;/STRONG&gt; A visual showing &lt;STRONG&gt;change in employment status&lt;/STRONG&gt; from entry to exit:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;No → Yes (got employed)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Yes → No (lost job)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Yes → Yes (remained employed)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;No → No (remained unemployed)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;1. Create a Summary Table (&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;DAX Calculated Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;PRE&gt;EmploymentStatusChanges =
SELECTCOLUMNS (
    FILTER (
        ADDCOLUMNS (
            VALUES('Table'[Unique Enrollment Number]),
            "EntryStatus", CALCULATE (
                MAX('Table'[Is the client currently employed?_1384]),
                'Table'[At what point is this data being collected?_9227] = "Program Entry"
            ),
            "ExitStatus", CALCULATE (
                MAX('Table'[Is the client currently employed?_1384]),
                'Table'[At what point is this data being collected?_9227] = "Program Exit"
            )
        ),
        NOT ISBLANK([EntryStatus]) &amp;amp;&amp;amp; NOT ISBLANK([ExitStatus])
    ),
    "EnrollmentID", 'Table'[Unique Enrollment Number],
    "EntryStatus", [EntryStatus],
    "ExitStatus", [ExitStatus]
)&lt;/PRE&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;2. Add a New Column: Status Change&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;To compare Entry vs Exit and label the change:&lt;/P&gt;&lt;PRE&gt;StatusChange = 
SWITCH(
    TRUE(),
    [EntryStatus] = "No" &amp;amp;&amp;amp; [ExitStatus] = "Yes", "No → Yes (Gained Employment)",
    [EntryStatus] = "Yes" &amp;amp;&amp;amp; [ExitStatus] = "No", "Yes → No (Lost Employment)",
    [EntryStatus] = "Yes" &amp;amp;&amp;amp; [ExitStatus] = "Yes", "Yes → Yes (Still Employed)",
    [EntryStatus] = "No" &amp;amp;&amp;amp; [ExitStatus] = "No", "No → No (Still Unemployed)",
    "Unknown"
)&lt;/PRE&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 09:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4731277#M181230</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-13T09:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - 2 Part Matching Values / Definition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4732914#M181291</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1289534" data-lia-user-login="muom" class="lia-mention lia-mention-user"&gt;muom&lt;/a&gt;&amp;nbsp;, I wanted to check with you and see if the provided information was useful. If any of it helped resolve your question, consider marking it as &lt;STRONG&gt;"Accept as Solution" &lt;/STRONG&gt;to make it easier for others to find. Let me know if there's anything else I can assist with!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 06:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-2-Part-Matching-Values-Definition/m-p/4732914#M181291</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-06-16T06:35:09Z</dc:date>
    </item>
  </channel>
</rss>

