<?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: Using CONTAINS to filter a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020111#M44998</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You measure is correct and works well.&lt;/P&gt;&lt;P&gt;I checked that with sample data and resualt for &amp;gt;Jun21 and &amp;gt;Jul21 are as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;shared has more advantages for you as you can see that on the table.&lt;/P&gt;&lt;P&gt;Please share the data in the table format to be able to review that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Aug 2021 04:16:53 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-08-17T04:16:53Z</dc:date>
    <item>
      <title>Using CONTAINS to filter a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2019888#M44988</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am trying to sum a column of $ values with a filter being applied to 2 other columns.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;e.g., I want to sum the sales revenue column when the Intake column CONTAINS the word Intensive and the student booking date is greater than Jun 21.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Below is what I have but it isn't bringing any values through.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have read a few posts and tried a few different things but still no luck.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any assistance is greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales Revenue Intensive only &amp;gt; Jun21 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM ( 'Sales Reports'[Sales Revenue] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONTAINSSTRING('Sales Reports'[Intake],"Intensive"),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Sales Reports'[Student Booking Date] &amp;gt; DATE ( 2021, 5, 31 )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Karen&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Aug 2021 01:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2019888#M44988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-17T01:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTAINS to filter a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020091#M44996</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Try with small change &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Sales Reports'[Sales Revenue] ),&lt;BR /&gt;filter('Sales Reports', CONTAINSSTRING('Sales Reports'[Intake],"Intensive") &amp;amp;&amp;amp; &lt;BR /&gt;'Sales Reports'[Student Booking Date] &amp;gt; DATE ( 2021, 5, 31 )&lt;BR /&gt;))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 04:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020091#M44996</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-17T04:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTAINS to filter a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020111#M44998</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You measure is correct and works well.&lt;/P&gt;&lt;P&gt;I checked that with sample data and resualt for &amp;gt;Jun21 and &amp;gt;Jul21 are as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;shared has more advantages for you as you can see that on the table.&lt;/P&gt;&lt;P&gt;Please share the data in the table format to be able to review that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 04:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020111#M44998</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-08-17T04:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTAINS to filter a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020344#M45003</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;Thank you. I re checked my measure and it appears that I had mysteriously put a comma somewhere that shouldn't have been there. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Apologies for this. Thank you for taking the time to check it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 06:45:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-CONTAINS-to-filter-a-column/m-p/2020344#M45003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-17T06:45:03Z</dc:date>
    </item>
  </channel>
</rss>

