<?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 How to count the column that contain strings Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092353#M108375</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to count row that contain month January, then feb and so on. However the data that i have is not structured. Some are January. Some are January- February. Any shortcuts?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 08:57:43 GMT</pubDate>
    <dc:creator>Nyxza</dc:creator>
    <dc:date>2023-02-22T08:57:43Z</dc:date>
    <item>
      <title>How to count the column that contain strings Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092353#M108375</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to count row that contain month January, then feb and so on. However the data that i have is not structured. Some are January. Some are January- February. Any shortcuts?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 08:57:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092353#M108375</guid>
      <dc:creator>Nyxza</dc:creator>
      <dc:date>2023-02-22T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the column that contain strings Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092403#M108377</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518819" data-lia-user-login="Nyxza" class="lia-mention lia-mention-user"&gt;Nyxza&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I hope this is what you're looking for&lt;/P&gt;
&lt;P&gt;Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Month Count = 
SUMX (
    VALUES ( 'Month Filter'[Month] ),
    COUNTROWS ( 
        FILTER ( 
            'Table',
            CONTAINSSTRING ( 'Table'[Month], 'Month Filter'[Month] )
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092403#M108377</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-22T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the column that contain strings Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092457#M108380</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
If(
    CONTAINSSTRING('Table'[Month], "January")
    || CONTAINSSTRING('Table'[Month], "February")
    || CONTAINSSTRING('Table'[Month], "March")
    || CONTAINSSTRING('Table'[Month], "April")
    || CONTAINSSTRING('Table'[Month], "May")
    || CONTAINSSTRING('Table'[Month], "June")
    || CONTAINSSTRING('Table'[Month], "July")
    || CONTAINSSTRING('Table'[Month], "August")
    || CONTAINSSTRING('Table'[Month], "September")
    || CONTAINSSTRING('Table'[Month], "October")
    || CONTAINSSTRING('Table'[Month], "November")
    || CONTAINSSTRING('Table'[Month], "December"),
    1,
    0
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then create a measure in which you can do 2 things to get the countrows of requirement.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure2 = CALCULATE( COUNTROWS('Table'), 'Table'[Column]=1)&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CountRowsMeasure = SUM('Table'[Column])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&amp;nbsp;&lt;BR /&gt;If my answer helps you, please mark it as solution.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:34:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-the-column-that-contain-strings-Month/m-p/3092457#M108380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T09:34:43Z</dc:date>
    </item>
  </channel>
</rss>

