<?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: DAX formula Using a Measure to search within a text string. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3138104#M111925</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531505" data-lia-user-login="SergiodePao" class="lia-mention lia-mention-user"&gt;SergiodePao&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can plot a slicer and in that slicer you can add Cities column so the users can select cities from the slicer.&lt;BR /&gt;You can also make a measure using SELECTEDVALUE DAX Formula like this:&lt;BR /&gt;Test = SELECTEDVALUE(&lt;SPAN&gt;groupofcities&lt;/SPAN&gt;&lt;SPAN&gt;[Cities])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this measure will select the values user select using the slicer.&lt;BR /&gt;Now you can pass this measure in your measure Column 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would look like this:&lt;BR /&gt;Column 1 = CONTAINSSTRING(groupofcities[Cities],[Test])&lt;BR /&gt;I hope this will help to solve your problem and if you have any queries then please let me know.&lt;BR /&gt;If this helps you then please give it a kudos and mark it as a solution.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 07:32:18 GMT</pubDate>
    <dc:creator>KeyurPatel14</dc:creator>
    <dc:date>2023-03-17T07:32:18Z</dc:date>
    <item>
      <title>DAX formula Using a Measure to search within a text string.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3138020#M111917</link>
      <description>&lt;P&gt;Good day All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im willing to Search text within a text string. the challenge im facing is that insted of text im willing to use a variable or Measure based on user input, here is my first attempt that works fine but using plain text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column 1 = &lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(groupofcities&lt;/SPAN&gt;&lt;SPAN&gt;[Cities]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"KC"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cities&lt;/TD&gt;&lt;TD&gt;Column 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DET, CHI, KC, HOU&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DAL, HOU&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;KC&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Im willing for instead of using a plain text in the formula to use a variable or Measure. This is what my "NO yet DAXed" Brain is doing so far, and of course is not working.&amp;nbsp; &amp;nbsp;please help&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column 1 = &lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(groupofcities&lt;/SPAN&gt;&lt;SPAN&gt;[Cities]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[MeasureCitySelected]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks so much for your Help&lt;/DIV&gt;&lt;DIV&gt;NOTE: Extra point if you can help on what if 2 cities are selected ... if KC and CHI are selected how can I make row 1 to be true and row two &amp;amp; three false base on the multiple selections.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 06:28:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3138020#M111917</guid>
      <dc:creator>SergiodePao</dc:creator>
      <dc:date>2023-03-17T06:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula Using a Measure to search within a text string.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3138104#M111925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531505" data-lia-user-login="SergiodePao" class="lia-mention lia-mention-user"&gt;SergiodePao&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can plot a slicer and in that slicer you can add Cities column so the users can select cities from the slicer.&lt;BR /&gt;You can also make a measure using SELECTEDVALUE DAX Formula like this:&lt;BR /&gt;Test = SELECTEDVALUE(&lt;SPAN&gt;groupofcities&lt;/SPAN&gt;&lt;SPAN&gt;[Cities])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this measure will select the values user select using the slicer.&lt;BR /&gt;Now you can pass this measure in your measure Column 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would look like this:&lt;BR /&gt;Column 1 = CONTAINSSTRING(groupofcities[Cities],[Test])&lt;BR /&gt;I hope this will help to solve your problem and if you have any queries then please let me know.&lt;BR /&gt;If this helps you then please give it a kudos and mark it as a solution.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 07:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3138104#M111925</guid>
      <dc:creator>KeyurPatel14</dc:creator>
      <dc:date>2023-03-17T07:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula Using a Measure to search within a text string.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3140422#M112107</link>
      <description>&lt;P&gt;Thank You KeyurPatel14 for your willines to help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfourtunatelly I try did not work ,&amp;nbsp; when we use a Measure in the condition, like the one you are proposing&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Column 1 = CONTAINSSTRING(groupofcities[Cities],[Test])&amp;nbsp;&lt;/SPAN&gt;for some reasson the results is that all rows are TRUE even if they do not contain "KC".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to add an slicer where each city is listed individually , it does work but the problem is that the row that contains "KC" in a group as the row identified as&amp;nbsp;&lt;SPAN&gt;DET, CHI, KC, HOU, still shows FALSE.&amp;nbsp; in other hand the row that only contain KC that one is TRUE.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe Im overcomplicating my dashboard but it is required.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 22:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3140422#M112107</guid>
      <dc:creator>SergiodePao</dc:creator>
      <dc:date>2023-03-18T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula Using a Measure to search within a text string.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3141332#M112186</link>
      <description>&lt;P&gt;Then You can use CONTAINSSTRING() DAX Function to solve your problem.&lt;BR /&gt;If you have any queries then please let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 04:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-Using-a-Measure-to-search-within-a-text-string/m-p/3141332#M112186</guid>
      <dc:creator>KeyurPatel14</dc:creator>
      <dc:date>2023-03-20T04:12:49Z</dc:date>
    </item>
  </channel>
</rss>

