<?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 Except  Function to get the list of values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678026#M142806</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being a beginner in PowerBI and coming from Tableau background, I am stuck and unable to understand the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the DAX calculated column to get the list of items present only on a given date and not present on another given date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PO Added = 
    VAR CD1 = 
        SELECTCOLUMNS( 
CALCULATETABLE(
            VALUES('All Netstar Inventory'[PO#]),
            'All Netstar Inventory'[Cut Date] = 'All Netstar Inventory'[CutDate_1],
            REMOVEFILTERS('All Netstar Inventory'[PO Removed])
        ),
		"PO", 'All Netstar Inventory'[PO#]
)

    VAR CD2 = 
        SELECTCOLUMNS( 
CALCULATETABLE(
            VALUES('All Netstar Inventory'[PO#]),
            'All Netstar Inventory'[Cut Date] = 'All Netstar Inventory'[CutDate_2],
            REMOVEFILTERS('All Netstar Inventory'[PO Removed])
        ),
		"PO", 'All Netstar Inventory'[PO#]
)

RETURN EXCEPT(CD1, CD2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. If I use this field in a table chart, I am getting all the POs including a blank value rather than getting only the POs present in CD1.&lt;/P&gt;&lt;P&gt;2. If I create a count measure on top of this calculated column, the count comes correct.&lt;/P&gt;&lt;P&gt;3. Also, if run the above formula using the DAX Query view using the Evaluate command, there also it gives the list of POs only present in CD1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am not able to understand why 2 &amp;amp; 3 are working correctly but 1 is not working correctly. How can I fix 1 to get the list of POs correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2024 19:03:06 GMT</pubDate>
    <dc:creator>ashishd</dc:creator>
    <dc:date>2024-02-03T19:03:06Z</dc:date>
    <item>
      <title>Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678026#M142806</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being a beginner in PowerBI and coming from Tableau background, I am stuck and unable to understand the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the DAX calculated column to get the list of items present only on a given date and not present on another given date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PO Added = 
    VAR CD1 = 
        SELECTCOLUMNS( 
CALCULATETABLE(
            VALUES('All Netstar Inventory'[PO#]),
            'All Netstar Inventory'[Cut Date] = 'All Netstar Inventory'[CutDate_1],
            REMOVEFILTERS('All Netstar Inventory'[PO Removed])
        ),
		"PO", 'All Netstar Inventory'[PO#]
)

    VAR CD2 = 
        SELECTCOLUMNS( 
CALCULATETABLE(
            VALUES('All Netstar Inventory'[PO#]),
            'All Netstar Inventory'[Cut Date] = 'All Netstar Inventory'[CutDate_2],
            REMOVEFILTERS('All Netstar Inventory'[PO Removed])
        ),
		"PO", 'All Netstar Inventory'[PO#]
)

RETURN EXCEPT(CD1, CD2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. If I use this field in a table chart, I am getting all the POs including a blank value rather than getting only the POs present in CD1.&lt;/P&gt;&lt;P&gt;2. If I create a count measure on top of this calculated column, the count comes correct.&lt;/P&gt;&lt;P&gt;3. Also, if run the above formula using the DAX Query view using the Evaluate command, there also it gives the list of POs only present in CD1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am not able to understand why 2 &amp;amp; 3 are working correctly but 1 is not working correctly. How can I fix 1 to get the list of POs correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 19:03:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678026#M142806</guid>
      <dc:creator>ashishd</dc:creator>
      <dc:date>2024-02-03T19:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678161#M142810</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685042" data-lia-user-login="ashishd" class="lia-mention lia-mention-user"&gt;ashishd&lt;/a&gt;&amp;nbsp;Likely has to do with context. Can you provide sample data? Also, you can probably get rid of the blank by using DISTINCT instead of VALUES.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 00:18:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678161#M142810</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-04T00:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678246#M142815</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thank you for the response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to attach the .pbix file here. Not sure why but here is the shared link of the file from GDrive:&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1hi2WP-GmiIz7mY7UPCMhnm6-gtvFfyrk/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1hi2WP-GmiIz7mY7UPCMhnm6-gtvFfyrk/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;Basically, the 2 cut dates are coming from the original column Cut date. I wanted to provide user the option to select any 2 dates from the available dates in the Cut date column and compare what POs have been added or removed. But I could not find how to give this functionality in PowerB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use parameters but did not see any such option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create 2 separate Calculated Tables for the dates and create 2 date slicers using these so that users can select the 2 dates. But the slicers do not impact the calculated column formula, so it was not dynamic. I then read at multiple places that calculated column are not impacted by slicers.&lt;BR /&gt;Then finally not finding any solution, I am trying to fix the 2 dates which are in the CutDate1 and CutDate2 columns and use them to get the Except function give the list of added/removed POs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 03:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678246#M142815</guid>
      <dc:creator>ashishd</dc:creator>
      <dc:date>2024-02-04T03:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678334#M142817</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685042" data-lia-user-login="ashishd" class="lia-mention lia-mention-user"&gt;ashishd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use this for Calculated Column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PO Added_ =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_PONum&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;[PO#]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_CD1&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;[PO#]&lt;/SPAN&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;),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&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_CD1&lt;/SPAN&gt;&lt;SPAN&gt;)) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_CD2&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;_PONum&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&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>Sun, 04 Feb 2024 08:49:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678334#M142817</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-04T08:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678335#M142818</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685042" data-lia-user-login="ashishd" class="lia-mention lia-mention-user"&gt;ashishd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sharing both Measure and Calculated column. My recommendation is to do this in Power Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;M PO Added_ =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_SUMM&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADDCOLUMNS&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;data&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;[PO#]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nb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;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 08:57:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678335#M142818</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-04T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678354#M142820</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;Thank you, for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is showing the correct list of POs added.&amp;nbsp; If you have further few mins to answer my questions, I will be more grateful:&lt;/P&gt;&lt;P&gt;1. What do you mean by - do it in the Power Query?&lt;/P&gt;&lt;P&gt;I tried earlier to do this in Power Query but it was a lengthy effort - something like creating 2 smaller tables for POs in each date and then doing Full Outer join between them. Then using this new table and applying filter on each of the 2 PO columns like PO is blank, fetch the list as added or removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Why the calculated columns from my original formula which were using CalculatedTable function&amp;nbsp; etc., was not showing the correct list using EXCEPT function? Being a newbie in PowerBI, I am trying to understand the workings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 09:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678354#M142820</guid>
      <dc:creator>ashishd</dc:creator>
      <dc:date>2024-02-04T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678379#M142824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685042" data-lia-user-login="ashishd" class="lia-mention lia-mention-user"&gt;ashishd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. You can do it in Power Query without joins. Add two columns for date checks, group and max. Use that as a filter. Sharing Power Query Steps below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Csv.Document(File.Contents("YourPath\data.csv"),[Delimiter=",", Columns=4, Encoding=65001, QuoteStyle=QuoteStyle.None]),&lt;BR /&gt;#"Promoted Headers1" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),&lt;BR /&gt;#"Added Custom" = Table.AddColumn(#"Promoted Headers1", "CD1", each if [Cut Date] = [CutDate_1] then 1 else 0),&lt;BR /&gt;#"Added Custom1" = Table.AddColumn(#"Added Custom", "CD2", each if [Cut Date] = [CutDate_2] then 1 else 0),&lt;BR /&gt;#"Grouped Rows" = Table.Group(#"Added Custom1", {"PO#"}, {{"CD1", each List.Max([CD1]), type number}, {"CD2", each List.Max([CD2]), type number}, {"AllRows", each _, type table [#"PO#"=nullable text, Cut Date=nullable text, CutDate_1=nullable text, CutDate_2=nullable text, CD1=number, CD2=number]}}),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(#"Grouped Rows",{{"CD1", Int64.Type}, {"CD2", Int64.Type}}),&lt;BR /&gt;#"Added Custom2" = Table.AddColumn(#"Changed Type", "Filter", each if [CD1] = 1 and [CD2] = 0 then 1 else 0),&lt;BR /&gt;#"Filtered Rows" = Table.SelectRows(#"Added Custom2", each true),&lt;BR /&gt;#"Changed Type1" = Table.TransformColumnTypes(#"Filtered Rows",{{"Filter", Int64.Type}}),&lt;BR /&gt;#"Removed Columns" = Table.RemoveColumns(#"Changed Type1",{"CD1", "CD2"}),&lt;BR /&gt;#"Expanded AllRows" = Table.ExpandTableColumn(#"Removed Columns", "AllRows", {"Cut Date", "CutDate_1", "CutDate_2"}, {"Cut Date", "CutDate_1", "CutDate_2"})&lt;BR /&gt;in&lt;BR /&gt;#"Expanded AllRows"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. You have to understand Evaluation context ( ROW Context and Filter Context ) and context transition. Watch youtube video series from Alberto, watch them repeatedly until the concept sinks into your mind. These are building blocks of DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a calculated column you have row context. it will evaluate row by row. If you look at 2nd row and your calculate column CD1 returns PO# ás Cut Date = Cut Date_1 but CD2 doesn't and EXCEPT returns the PO# which is wrong as per the expected logic, since in the first row Cut Date = CutDate_2 this PO# shouldn't have been returned. Which is why your total on calculated column is wrong.&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;</description>
      <pubDate>Sun, 04 Feb 2024 11:00:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678379#M142824</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-04T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678485#M142834</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685042" data-lia-user-login="ashishd" class="lia-mention lia-mention-user"&gt;ashishd&lt;/a&gt;&amp;nbsp;Try this perhaps. PBIX is attached below signature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
    VAR __CD1 = 
        SUMMARIZE(
            FILTER( 'data', [Cut Date] = [CutDate_1] ),
            [PO#]
        )
    VAR __CD2 = 
        SUMMARIZE(
            FILTER( 'data', [Cut Date] = [CutDate_2] ),
            [PO#]
        )
    VAR __Result = EXCEPT( __CD1, __CD2 )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 14:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678485#M142834</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-04T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678517#M142836</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; - this works fine as well!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 15:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/3678517#M142836</guid>
      <dc:creator>ashishd</dc:creator>
      <dc:date>2024-02-04T15:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/4038421#M160098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, hopefully I haven't broken any protocols by jumping in on this thread? I too have similar requirement, I have managed to derive the counts, howevever, what I really need to achieve is the actual list, in my case it's a list of employee names. I need to find the difference of a list of employees from this week compared to last week rather than the count. Is this possible do you think? Any advice would be great!&lt;BR /&gt;Regards,&lt;BR /&gt;Karin&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 03:17:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/4038421#M160098</guid>
      <dc:creator>kmfitzy</dc:creator>
      <dc:date>2024-07-12T03:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/4039491#M160161</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="761667" data-lia-user-login="kmfitzy" class="lia-mention lia-mention-user"&gt;kmfitzy&lt;/a&gt;&amp;nbsp;You might be better served by posting a new thread. I only noticed this because you&amp;nbsp;@'d me. You can use CONCATENATEX across your EXCEPT table to get the list of names. Not sure if I can be more specific than that given the information at hand as of now.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 12:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/4039491#M160161</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-07-12T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Except  Function to get the list of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/4040447#M160214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Thank you for taking the time to reply. Great suggestion to use CONCATENATEX, however, I shall post a new thread.&lt;BR /&gt;Regards,&lt;BR /&gt;Karin&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 09:23:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Except-Function-to-get-the-list-of-values/m-p/4040447#M160214</guid>
      <dc:creator>kmfitzy</dc:creator>
      <dc:date>2024-07-13T09:23:26Z</dc:date>
    </item>
  </channel>
</rss>

