<?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 specific text in one column with direct query mode in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956632#M42708</link>
    <description>&lt;P&gt;You can create a measure with below code&lt;/P&gt;&lt;LI-CODE lang="python"&gt;word_count = 
LEN ( MAX ( 'Table (5)'[Cough Fever] ) )
    - LEN ( SUBSTITUTE ( MAX ( 'Table (5)'[Cough Fever] ), " ", "" ) ) + 1&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 08:08:26 GMT</pubDate>
    <dc:creator>Samarth_18</dc:creator>
    <dc:date>2021-07-14T08:08:26Z</dc:date>
    <item>
      <title>Count specific text in one column with direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956310#M42705</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I need help to create measure to count number of specific text that contains in one column, please note that I using direct query mode on connecting to database.&lt;BR /&gt;&lt;BR /&gt;Here my illustration, I named it my table with "CovidSymptomsScreen"&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cough Fever&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Loss of smell&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Diarrhea fever&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fever&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Headache Fever Diarrhea&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the measure result will count the specific text that contains in a cell, here the illustration result if I create a table vizualisation :&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cough Fever&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Loss of smell&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Diarrhea fever&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fever&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Headache Fever Diarrhea&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new with power bi, hopefully tutorial dax will shown from expert answer.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 05:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956310#M42705</guid>
      <dc:creator>TaufikMaggangka</dc:creator>
      <dc:date>2021-07-14T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count specific text in one column with direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956632#M42708</link>
      <description>&lt;P&gt;You can create a measure with below code&lt;/P&gt;&lt;LI-CODE lang="python"&gt;word_count = 
LEN ( MAX ( 'Table (5)'[Cough Fever] ) )
    - LEN ( SUBSTITUTE ( MAX ( 'Table (5)'[Cough Fever] ), " ", "" ) ) + 1&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 08:08:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956632#M42708</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-07-14T08:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count specific text in one column with direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956675#M42710</link>
      <description>&lt;P&gt;Basically it count the space but it works.&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312802" data-lia-user-login="Samarth_18" class="lia-mention lia-mention-user"&gt;Samarth_18&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 08:24:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-specific-text-in-one-column-with-direct-query-mode/m-p/1956675#M42710</guid>
      <dc:creator>TaufikMaggangka</dc:creator>
      <dc:date>2021-07-14T08:24:11Z</dc:date>
    </item>
  </channel>
</rss>

