<?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: Filter on multiple words in different rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1119076#M16464</link>
    <description>&lt;P&gt;Thank you very much, this was exactly what i needed&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 08:31:35 GMT</pubDate>
    <dc:creator>RickPowerBI</dc:creator>
    <dc:date>2020-05-26T08:31:35Z</dc:date>
    <item>
      <title>Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117963#M16384</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to filter on multiple words in different rows.&lt;/P&gt;&lt;P&gt;I succeeded to filter on one word but I can’t seem to add more, how do I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the filter that I have working on one word:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1=&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;SUM( 'Analytical Report'[Column 2]),&lt;BR /&gt;FILTER('Analytical Report',&lt;BR /&gt;&amp;nbsp;FIND("Taxes", 'Analytical Report'[Column 1]), , 0) &amp;lt;&amp;gt; 0 ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I need a filter on multiple words, how does this work?&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(example data):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Table name: Analytical Report&lt;/P&g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R /&gt;-Network service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 12:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117963#M16384</guid>
      <dc:creator>RickPowerBI</dc:creator>
      <dc:date>2020-05-25T12:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117975#M16386</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232007" data-lia-user-login="RickPowerBI" class="lia-mention lia-mention-user"&gt;RickPowerBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 1 =
CALCULATE (
    SUM ( 'Analytical Report'[Column 2] ),
    FILTER (
        'Analytical Report',
        'Analytical Report'[Column 1] IN { "EB", "ODE", "Network service" }
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 13:09:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117975#M16386</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-25T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117978#M16387</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232007" data-lia-user-login="RickPowerBI" class="lia-mention lia-mention-user"&gt;RickPowerBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create DAX measure&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Measure 1 =
SUMX (
    FILTER (
        'Analytical Report',
        CONTAINSSTRING (
            "EB",
            [Column 1]
        )
            || CONTAINSSTRING (
                "ODE",
                [Column 1]
            )
            || CONTAINSSTRING (
                "Network service",
                [Column 1]
            )
    ),
    [Column 2]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your column 1 contains exact same text, then you can use the below measure.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Measure 2 =
SUMX (
    FILTER (
        'Analytical Report',
        'Analytical Report'[Column 1]
            IN {
            "EB",
            "ODE",
            "Network service"
        }
    ),
    [Column 2]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 13:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117978#M16387</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-25T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117982#M16390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232007" data-lia-user-login="RickPowerBI" class="lia-mention lia-mention-user"&gt;RickPowerBI&lt;/a&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;You cna try this measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM of Col1 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAX('Table'[Column 1]) = "Taxes" , CALCULATE(SUM( 'Table'[Column 2])),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAX( 'Table'[Column 1]) = "EB" || MAX('Table'[Column 1]) = "Debit" || MAX('Table'[Column 1]) = "ODE", CALCULATE(SUM('Table'[Column 2]),FILTER(ALL('Table'),'Table'[Column 1] = "EB" || 'Table'[Column 1] = "Debit" || 'Table'[Column 1] = "ODE" ))&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;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 May 2020 13:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1117982#M16390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-25T13:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1118896#M16456</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Thank you for your suggestions but I still get blanks.&lt;/P&gt;&lt;P&gt;I’ve added a more detailed example of the data. The words I need to filter on are only a part of the cell. Splitting by delimiter is not an option. Can you help me fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table name: Analytical Report&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Column 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Column 2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales Network service&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Taxes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;39&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Property&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;EB-WRTS&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;309&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Debit&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;453&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ODE-OBR&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3456&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Credit&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;239&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the sum of:&lt;BR /&gt;- EB&lt;BR /&gt;-ODE&lt;BR /&gt;-Network service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 06:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1118896#M16456</guid>
      <dc:creator>RickPowerBI</dc:creator>
      <dc:date>2020-05-26T06:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1118934#M16457</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232007" data-lia-user-login="RickPowerBI" class="lia-mention lia-mention-user"&gt;RickPowerBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Measure 1 =
SUMX (
    FILTER (
        'Analytical Report',
        NOT (
            ISBLANK (
                FIND (
                    "EB",
                    [Column 1],
                    ,
                    BLANK ()
                )
            )
        )
            || NOT (
                ISBLANK (
                    FIND (
                        "ODE",
                        [Column 1],
                        ,
                        BLANK ()
                    )
                )
            )
            || NOT (
                ISBLANK (
                    FIND (
                        "Network service",
                        [Column 1],
                        ,
                        BLANK ()
                    )
                )
            )
    ),
    [Column 2]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working for me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are looking for non-case sensitive approach, for example, &lt;STRONG&gt;EB&lt;/STRONG&gt; is in D&lt;STRONG&gt;eb&lt;/STRONG&gt;it, You have to use &lt;STRONG&gt;search()&lt;/STRONG&gt; instead of &lt;STRONG&gt;find()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1118934#M16457</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-26T07:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple words in different rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1119076#M16464</link>
      <description>&lt;P&gt;Thank you very much, this was exactly what i needed&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 08:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-on-multiple-words-in-different-rows/m-p/1119076#M16464</guid>
      <dc:creator>RickPowerBI</dc:creator>
      <dc:date>2020-05-26T08:31:35Z</dc:date>
    </item>
  </channel>
</rss>

