<?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 Measure giving count of items within a field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589951#M74579</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be a basic question but I'm new to Power BI (and couldn't find a related question that translated directly to my query).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field (or column) that contains two items of information, X and Y.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure that will give me the count of X within that column. How would I go about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 14:41:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-20T14:41:39Z</dc:date>
    <item>
      <title>Measure giving count of items within a field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589951#M74579</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be a basic question but I'm new to Power BI (and couldn't find a related question that translated directly to my query).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field (or column) that contains two items of information, X and Y.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure that will give me the count of X within that column. How would I go about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:41:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589951#M74579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-20T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure giving count of items within a field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589978#M74580</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE(COUNT(Table1[Column]), Table1[Column] = "X")&lt;/LI-CODE&gt;
&lt;P&gt;You can also use a slicer to select "X" (or "Y") and have a more generic measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
COUNT(Table1[Column])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="height: 100px; width: 100%; border-collapse: collapse; border-style: groove; border-color: #0c1c49; background-color: #00675f;" border="0" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15px;"&gt;
&lt;TD width="15.961305925030231%" style="width: 92px; height: 15px;"&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="84.03869407496977%" style="width: 485px; height: 15px; text-align: left;"&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Please accept the solution when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4.5" color="#FF99CC"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:48:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589978#M74580</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2022-06-20T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure giving count of items within a field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589992#M74585</link>
      <description>&lt;P&gt;That worked perfectly, thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-giving-count-of-items-within-a-field/m-p/2589992#M74585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-20T14:58:06Z</dc:date>
    </item>
  </channel>
</rss>

