<?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 Compare the values from 2 columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-the-values-from-2-columns/m-p/1499533#M28962</link>
    <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns in a single table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to compare parent_id with Issue_id, as in when a value of parent_id is present in the issue_id then you much count the row and same for the other rows of the column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired count output as a measure = 6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to 9,0,1,5,4,2.......Present in the issue_id coulumn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to create a column also for the same logic but as when there is a match the value of the row for that parent_id will be 1, if not a match then 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 15:08:29 GMT</pubDate>
    <dc:creator>Nimai123</dc:creator>
    <dc:date>2020-11-17T15:08:29Z</dc:date>
    <item>
      <title>Compare the values from 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-the-values-from-2-columns/m-p/1499533#M28962</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns in a single table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to compare parent_id with Issue_id, as in when a value of parent_id is present in the issue_id then you much count the row and same for the other rows of the column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired count output as a measure = 6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to 9,0,1,5,4,2.......Present in the issue_id coulumn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to create a column also for the same logic but as when there is a match the value of the row for that parent_id will be 1, if not a match then 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 15:08:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-the-values-from-2-columns/m-p/1499533#M28962</guid>
      <dc:creator>Nimai123</dc:creator>
      <dc:date>2020-11-17T15:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values from 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-the-values-from-2-columns/m-p/1499578#M28967</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="163058" data-lia-user-login="Nimai123" class="lia-mention lia-mention-user"&gt;Nimai123&lt;/a&gt; , Try a measure &lt;/P&gt;
&lt;P&gt;countx(filter(allselected(Table), [parent_id] =max(Table[Id])), Table[ID])&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 15:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-the-values-from-2-columns/m-p/1499578#M28967</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-17T15:33:19Z</dc:date>
    </item>
  </channel>
</rss>

