<?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 Help - SUMIF where text contains a specific word in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294760#M56536</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been researching this but I can't seem to find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset is like the below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Activity Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Hours&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Initial Tutorial&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;Initial Lecture&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;Repeat Tutorial&amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new column that returns the hour value if the Activity Type column contains "Tutorial". If the row does not contain "tutorial" I want it to return a blank cell. I want this to evaluate row by row. There are many versions of the Activity Type that will be added on to this dataset and I can't create an exhaustive list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't use DAX often so feeling a bit stuck. Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 04:35:38 GMT</pubDate>
    <dc:creator>m4d</dc:creator>
    <dc:date>2022-01-21T04:35:38Z</dc:date>
    <item>
      <title>Help - SUMIF where text contains a specific word</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294760#M56536</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been researching this but I can't seem to find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset is like the below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Activity Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Hours&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Initial Tutorial&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;Initial Lecture&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;Repeat Tutorial&amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new column that returns the hour value if the Activity Type column contains "Tutorial". If the row does not contain "tutorial" I want it to return a blank cell. I want this to evaluate row by row. There are many versions of the Activity Type that will be added on to this dataset and I can't create an exhaustive list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't use DAX often so feeling a bit stuck. Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 04:35:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294760#M56536</guid>
      <dc:creator>m4d</dc:creator>
      <dc:date>2022-01-21T04:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help - SUMIF where text contains a specific word</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294774#M56537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;please check the below. It is for creating a calculated column ( not a calculated measure).&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;
&lt;DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;Hours tutorial CC = &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;IF ( CONTAINSSTRING ( Data[Activity Type], "Tutorial" ), Data[Hours] )&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Jan 2022 04:55:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294774#M56537</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-01-21T04:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help - SUMIF where text contains a specific word</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294793#M56539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353446" data-lia-user-login="m4d" class="lia-mention lia-mention-user"&gt;m4d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use this code to add a new column with DAX:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;New Column =
IF (
    CONTAINSSTRING ( 'Table'[Activity Type], "Tutorial" ),
    'Table'[Hours],
    BLANK ()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 05:15:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294793#M56539</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-21T05:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help - SUMIF where text contains a specific word</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294821#M56544</link>
      <description>&lt;P&gt;Thanks, unfortunately power pivot won't recognise CONTAINSSTRING. Is there a workaround or is it not possible in Excel? I have the latest 365 version.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 05:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294821#M56544</guid>
      <dc:creator>m4d</dc:creator>
      <dc:date>2022-01-21T05:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help - SUMIF where text contains a specific word</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294878#M56551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353446" data-lia-user-login="m4d" class="lia-mention lia-mention-user"&gt;m4d&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try any of below code:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column =
IF (
    SEARCH ( "Tutorial", 'Table'[Activity Type], 1, 0 ),
    'Table'[Hours],
    BLANK ()
)&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
IF (
    Find ( "Tutorial", 'Table'[Activity Type], 1, 0 ),
    'Table'[Hours],
    BLANK ()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 06:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2294878#M56551</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2022-01-21T06:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help - SUMIF where text contains a specific word</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2297338#M56646</link>
      <description>&lt;P&gt;The first one worked perfectly - thank you very much!&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 23:05:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-SUMIF-where-text-contains-a-specific-word/m-p/2297338#M56646</guid>
      <dc:creator>m4d</dc:creator>
      <dc:date>2022-01-23T23:05:26Z</dc:date>
    </item>
  </channel>
</rss>

