<?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 items in COLUMN 1, filtered by COLUMN 2, grouped by COLUMN 3 ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912351#M8745</link>
    <description>&lt;P&gt;Hi there. You can just add the column you want to count values in a table visualization and the value to count as a summarization option with downarrow as "distinct count". You can also create a measure like DISTINCTCOUNT(Table[Column]). Then create a visualization with the measure and the category you want to count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 12:55:19 GMT</pubDate>
    <dc:creator>ibarrau</dc:creator>
    <dc:date>2020-01-27T12:55:19Z</dc:date>
    <item>
      <title>Count items in COLUMN 1, filtered by COLUMN 2, grouped by COLUMN 3 ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912324#M8743</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m brand new to Power BI and working on some reports. I’m wondering if someone can advise how to best work out (I assume via a measure) how many unique ID’s exist for a particular DisplayName, filtered on ClassName. In basic terms, using this example table, I want to know how many &lt;EM&gt;&lt;STRONG&gt;IDs&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;exist for each specific&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Organisation&lt;/EM&gt;&lt;/STRONG&gt;. Or in other words, how do I count items in the FIRST COLUMN, filtered on THE SECOND COLUMN and grouped by the THIRD COLUMN?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results – based on this example – should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Company 1 = 4&lt;/P&gt;&lt;P&gt;Company 2 = 2&lt;/P&gt;&lt;P&gt;Company 3 = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am certain it is not too difficult, and I could do this calculation using SQL, but I’m just trying to wrap my head around Power BI and how calculations work there.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912324#M8743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-27T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count items in COLUMN 1, filtered by COLUMN 2, grouped by COLUMN 3 ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912351#M8745</link>
      <description>&lt;P&gt;Hi there. You can just add the column you want to count values in a table visualization and the value to count as a summarization option with downarrow as "distinct count". You can also create a measure like DISTINCTCOUNT(Table[Column]). Then create a visualization with the measure and the category you want to count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:55:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912351#M8745</guid>
      <dc:creator>ibarrau</dc:creator>
      <dc:date>2020-01-27T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count items in COLUMN 1, filtered by COLUMN 2, grouped by COLUMN 3 ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912462#M8751</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to example this based on the data I showed at all? &lt;SPAN&gt;I created a new table visualisation with DisplayName as the first column, filtered that on ClassName = Organisation; which seems like the starting point. I now want to generate a new column with the ID count for each particular organisation but the&amp;nbsp;&lt;/SPAN&gt;counts and measures I have tried - including your suggested&amp;nbsp;&lt;SPAN&gt;DISTINCTCOUNT(Table[Column]) - only ever returns the total count of organisations on every row rather than a count of IDs for each Organisation. I should maybe highlight that the data lies across more than 1 table (ID is on one table, ClassName and DisplayName are on another table).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are you (or anyone) able to give me a specific example for this case at all?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912462#M8751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-27T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count items in COLUMN 1, filtered by COLUMN 2, grouped by COLUMN 3 ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912472#M8752</link>
      <description>&lt;P&gt;For sure you should share the idea of the data model in order to help us understand your problem. My suggestion was adding a table with organization name and a distinct count of the ID you are looking for DISTINTCOUNT(Table[Id])&lt;/P&gt;&lt;P&gt;If you don't have sensitive data you can share a picture of the relationship view. Otherwise just draw an example in any tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:32:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-items-in-COLUMN-1-filtered-by-COLUMN-2-grouped-by-COLUMN-3/m-p/912472#M8752</guid>
      <dc:creator>ibarrau</dc:creator>
      <dc:date>2020-01-27T14:32:02Z</dc:date>
    </item>
  </channel>
</rss>

