<?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: A DAX Measure to only display rows with comments that contains certain words. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662250#M178536</link>
    <description>&lt;P&gt;Very useful to know how to build a keyword filter! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 06:04:26 GMT</pubDate>
    <dc:creator>LRCSG</dc:creator>
    <dc:date>2025-04-22T06:04:26Z</dc:date>
    <item>
      <title>A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656481#M178280</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have a Power BI table containing every comment I received from my customer survey. I am trying to create a DAX measure so that when I create a table visual, it will only show me comments that contain the words "spa," "facial," or "massage." It's not working, and I'm wondering if anyone can point me in the right direction or tell me where I'm going wrong. I would greatly appreciate any help I can get. Here's an example of the table and DAX.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Overall comments&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;The cashier was so friendly&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;the treatment I had was sooooooo good&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I love the scent and product variety&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I had a very welcoming experience&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;The facial I had gave me a glow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Best massage ever&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Wow! they knew it was my birthday and gave me a small cake&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DisplayComments :=&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;VAR Comment = SELECTEDVALUE('All Responses'[Overall Comment])&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF (&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOT ISBLANK(Comment) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SEARCH("treatment", LOWER(Comment), 1, 0) &amp;gt; 0 ||&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SEARCH("facial", LOWER(Comment), 1, 0) &amp;gt; 0 ||&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SEARCH("spa", LOWER(Comment), 1, 0) &amp;gt; 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Comment,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;BLANK()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 23:10:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656481#M178280</guid>
      <dc:creator>LRCSG</dc:creator>
      <dc:date>2025-04-16T23:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656499#M178281</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365485" data-lia-user-login="LRCSG" class="lia-mention lia-mention-user"&gt;LRCSG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;create a new measure with following DAX.&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_Desc&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Description]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_Desc&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Spa"&lt;/SPAN&gt;&lt;SPAN&gt;)||&lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_Desc&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Facial"&lt;/SPAN&gt;&lt;SPAN&gt;)||&lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_Desc&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Treatment&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV&gt;&lt;SPAN&gt;then put the measure into visual filter, and set value to 1.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hope this will help.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Apr 2025 00:08:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656499#M178281</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2025-04-17T00:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656776#M178286</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490030" data-lia-user-login="Irwan" class="lia-mention lia-mention-user"&gt;Irwan&lt;/a&gt;&amp;nbsp;! I feel like it's almost there. I'm now trying to figure out why that measure's filter on my Power BI is not editable/selectable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 06:06:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656776#M178286</guid>
      <dc:creator>LRCSG</dc:creator>
      <dc:date>2025-04-17T06:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656827#M178292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365485" data-lia-user-login="LRCSG" class="lia-mention lia-mention-user"&gt;LRCSG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 1: Create a Calculated Column&lt;/P&gt;
&lt;P&gt;ShowCommentFlag = &lt;BR /&gt;VAR Comment = LOWER('All Responses'[Overall Comment])&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;SEARCH("spa", Comment, 1, 0) &amp;gt; 0 ||&lt;BR /&gt;SEARCH("facial", Comment, 1, 0) &amp;gt; 0 ||&lt;BR /&gt;SEARCH("massage", Comment, 1, 0) &amp;gt; 0,&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;Then in your table visual, Add the Overall Comment column, Go to the Filters pane → drag in ShowCommentFlag, &lt;BR /&gt;Set it to "is 1".&lt;/P&gt;
&lt;P&gt;Option 2: Use a Measure &lt;BR /&gt;If you need a measure because of other requirements (like aggregations):&lt;/P&gt;
&lt;P&gt;DisplayComments :&lt;BR /&gt;VAR Comment = SELECTEDVALUE('All Responses'[Overall Comment])&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;NOT ISBLANK(Comment) &amp;amp;&amp;amp;&lt;BR /&gt;(&lt;BR /&gt;SEARCH("spa", LOWER(Comment), 1, 0) &amp;gt; 0 ||&lt;BR /&gt;SEARCH("facial", LOWER(Comment), 1, 0) &amp;gt; 0 ||&lt;BR /&gt;SEARCH("massage", LOWER(Comment), 1, 0) &amp;gt; 0&lt;BR /&gt;),&lt;BR /&gt;Comment,&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;BR /&gt;Then in your table visual, DisplayComments measure in the values area, Use a visual-level filter on DisplayComments → "is not blank".&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 06:33:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4656827#M178292</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-17T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4658114#M178357</link>
      <description>&lt;P&gt;Easy enough,&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4658114#M178357</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2025-04-17T18:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4658325#M178368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365485" data-lia-user-login="LRCSG" class="lia-mention lia-mention-user"&gt;LRCSG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can create a disconnected table keyword list table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and then adding a custom column in the power query editor&lt;BR /&gt;let&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keywords = Table.Column(KeywordList, "keyword"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = Text.Lower([Overall comments]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchFound = List.AnyTrue(List.Transform(keywords, each Text.Contains(comment, Text.Lower(_))))&lt;BR /&gt;in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if matchFound then "Yes" else "No"&lt;/P&gt;&lt;P&gt;Then you can use this column to filter this visual&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 03:43:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4658325#M178368</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-04-18T03:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4659134#M178393</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365485" data-lia-user-login="LRCSG" class="lia-mention lia-mention-user"&gt;LRCSG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to add a value in visual filter.&lt;/P&gt;
&lt;P&gt;choose "is" then put 1 as value to show those values based on your measure.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 22:58:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4659134#M178393</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2025-04-18T22:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662180#M178532</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1249554" data-lia-user-login="v-dineshya" class="lia-mention lia-mention-user"&gt;v-dineshya&lt;/a&gt;&amp;nbsp;! This method also works and I can apply it to another one of my reports.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 05:19:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662180#M178532</guid>
      <dc:creator>LRCSG</dc:creator>
      <dc:date>2025-04-22T05:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662247#M178535</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp;this is going to be useful for my reports. I didn't know we could do this.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 06:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662247#M178535</guid>
      <dc:creator>LRCSG</dc:creator>
      <dc:date>2025-04-22T06:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662250#M178536</link>
      <description>&lt;P&gt;Very useful to know how to build a keyword filter! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 06:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4662250#M178536</guid>
      <dc:creator>LRCSG</dc:creator>
      <dc:date>2025-04-22T06:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to only display rows with comments that contains certain words.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4665714#M178690</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 00:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-only-display-rows-with-comments-that-contains/m-p/4665714#M178690</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-04-24T00:16:07Z</dc:date>
    </item>
  </channel>
</rss>

