<?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: Count with second column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658654#M33784</link>
    <description>&lt;P&gt;That would work if I didn't need need every field on the visualization.&amp;nbsp; I actually need all 3 columns in the viz plus the other column created from the measure.&amp;nbsp; I should have put that in the original description.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 20:01:39 GMT</pubDate>
    <dc:creator>Nigelbloomy</dc:creator>
    <dc:date>2021-02-10T20:01:39Z</dc:date>
    <item>
      <title>Count with second column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658338#M33775</link>
      <description>&lt;P&gt;I have 3 columns (Investment, Investment Status, and Line Item Detail).&amp;nbsp; I need a DAX measure (I don't have access to the dataset) to see if an investment has more than one status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Investment Status&lt;/TD&gt;&lt;TD&gt;Line Item Detail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Approved&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Approved&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Not Approved&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Approved&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Approved&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in this example I need to know that Investment A has more than 1 status and Investment B only has 1 status.&lt;BR /&gt;&lt;BR /&gt;I have been trying to use SUMMARIZE to get a distinct set of investments and statuses, but when I use COUNTROWS I get 1 for each line.&amp;nbsp; I don't know how to compare the summarized table to the current row while only looking at the investment name.&amp;nbsp; Maybe that is not the right path to take though.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 17:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658338#M33775</guid>
      <dc:creator>Nigelbloomy</dc:creator>
      <dc:date>2021-02-10T17:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count with second column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658567#M33781</link>
      <description>&lt;P&gt;I think you're overcomplicating it.&lt;/P&gt;
&lt;P&gt;If you create a table visual, drag the Investment on.&amp;nbsp; Create a measure using DISTINCTCOUNT on the Investment Status.&lt;/P&gt;
&lt;P&gt;Add that to the visual.&lt;/P&gt;
&lt;P&gt;That will give the distinct count of each investment.&lt;/P&gt;
&lt;P&gt;If you want "1" or "more than 1" just alter the measure by putting the distinctcount in a variable, then use an 'if' to test the value &amp;gt; 1.&lt;/P&gt;
&lt;P&gt;Let me know how you get on.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658567#M33781</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2021-02-10T19:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count with second column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658654#M33784</link>
      <description>&lt;P&gt;That would work if I didn't need need every field on the visualization.&amp;nbsp; I actually need all 3 columns in the viz plus the other column created from the measure.&amp;nbsp; I should have put that in the original description.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:01:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1658654#M33784</guid>
      <dc:creator>Nigelbloomy</dc:creator>
      <dc:date>2021-02-10T20:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count with second column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1659097#M33795</link>
      <description>&lt;P&gt;Measure=CALCULATE(DISTINCTCOUNT(Sample[Investment Status]),ALLEXCEPT(Sample,Sample[Investment]))&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 01:34:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1659097#M33795</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-02-11T01:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count with second column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1660906#M33862</link>
      <description>&lt;P&gt;That works&amp;nbsp; Thank you!&amp;nbsp; That was much simpler than the path I was headed down.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:22:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-second-column/m-p/1660906#M33862</guid>
      <dc:creator>Nigelbloomy</dc:creator>
      <dc:date>2021-02-11T15:22:13Z</dc:date>
    </item>
  </channel>
</rss>

