<?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: To compare and make a new column of the value with same ID in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-compare-and-make-a-new-column-of-the-value-with-same-ID/m-p/2946697#M97535</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307306" data-lia-user-login="Roy_W" class="lia-mention lia-mention-user"&gt;Roy_W&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to attched sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;2022 Summary = 
VAR T1 = 
    CALCULATETABLE ( 
        VALUES ( Query1[passed/failed/not evaluate] ), 
        ALLEXCEPT ( Query1, Query1[id] ) 
    )
RETURN
    SWITCH (
        TRUE ( ),
        "passed" IN T1, "passed",
        "failed" IN T1, "failed",
        "not evaluate"
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 04 Dec 2022 18:44:55 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-12-04T18:44:55Z</dc:date>
    <item>
      <title>To compare and make a new column of the value with same ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-compare-and-make-a-new-column-of-the-value-with-same-ID/m-p/2946677#M97532</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have problem to make a new column value with same ID.&lt;/P&gt;&lt;P&gt;Here is the example of data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to make a new column to distinguish if "pass/failed/not evaluate" with same ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- If A ever got "passed", then to fill all collums that result="passed" with id=A&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;nbsp;If B got "failed" and no "passed", then to fill all collums that result="failed" with id=B&lt;/P&gt;&lt;P&gt;&amp;nbsp;- If someone didn't get "passed" or "failed",&amp;nbsp;then to fill all collums that result="not evaluate" with id=someone&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the pbi file to the question, please kindly help to give some advices, thanks.&lt;/P&gt;&lt;P&gt;&lt;A title="file attached" href="https://drive.google.com/file/d/1lqa_PJK912BbOaxVciozdZ8PbRy3sehj/view?usp=sharing" target="_blank" rel="noopener"&gt;file attached&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 18:10:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-compare-and-make-a-new-column-of-the-value-with-same-ID/m-p/2946677#M97532</guid>
      <dc:creator>Roy_W</dc:creator>
      <dc:date>2022-12-04T18:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: To compare and make a new column of the value with same ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-compare-and-make-a-new-column-of-the-value-with-same-ID/m-p/2946697#M97535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307306" data-lia-user-login="Roy_W" class="lia-mention lia-mention-user"&gt;Roy_W&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to attched sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;2022 Summary = 
VAR T1 = 
    CALCULATETABLE ( 
        VALUES ( Query1[passed/failed/not evaluate] ), 
        ALLEXCEPT ( Query1, Query1[id] ) 
    )
RETURN
    SWITCH (
        TRUE ( ),
        "passed" IN T1, "passed",
        "failed" IN T1, "failed",
        "not evaluate"
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 04 Dec 2022 18:44:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-compare-and-make-a-new-column-of-the-value-with-same-ID/m-p/2946697#M97535</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-04T18:44:55Z</dc:date>
    </item>
  </channel>
</rss>

