<?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: Sum columns filtering table on multiple containsstring values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2903539#M94645</link>
    <description>&lt;P&gt;Thank you very much, I will accept as solution (but wasn't sure if that will close this case!?) but either way I just wanted to ask one more question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can it just use the IN function to search anywhere in the CBS Name for NOP1 NOP2 NOP3, rather than search the first 4 left characters, as I can't guarantee they will always be there. I tried to remove the LEFT part but it didn’t like it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 11:37:45 GMT</pubDate>
    <dc:creator>NMOORE</dc:creator>
    <dc:date>2022-11-14T11:37:45Z</dc:date>
    <item>
      <title>Sum columns filtering table on multiple containsstring values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2902206#M94563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the table attached as an example 'Financial_Tab'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Row ID&lt;/TD&gt;&lt;TD&gt;CBS Code&lt;/TD&gt;&lt;TD&gt;CBS Name&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1.2.3.21&lt;/TD&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&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1.2.4.21&lt;/TD&gt;&lt;TD&gt;NOP4 EX1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;£10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;1.2.4.22&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;NOP1EX1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;£5&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;1.2.3.22&lt;/TD&gt;&lt;TD&gt;NOP2EX1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;£15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;22.1.2.4.22&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;NOP2EX1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;£10&lt;/STRONG&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 want to sum [Budget] based on whether "1.2.4" is within [CBS Code], &amp;amp; where "NOP1" or "NOP2" or "NOP3" is within [CBS Name]. Returning the bold rows above.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;My primary issue is looking for a succinct and functional way of searching for NOP1/NOP2/NOP3 in one go. I'm returning blank results. I think IN {} could be used but I cant get it to work with containsstring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 21:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2902206#M94563</guid>
      <dc:creator>NMOORE</dc:creator>
      <dc:date>2022-11-13T21:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum columns filtering table on multiple containsstring values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2902312#M94569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470203" data-lia-user-login="NMOORE" class="lia-mention lia-mention-user"&gt;NMOORE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check this measure:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;AA =
SUMX (
    FILTER (
        'Table',
        CONTAINSSTRING ( 'Table'[CBS Code], "1.2.4" )
            &amp;amp;&amp;amp; LEFT ( 'Table'[CBS Name], 4 ) IN { "NOP1", "NOP2", "NOP3" }
    ),
    [Budget]
)
&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.credly.com/users/vahid-doustimajd/badges" target="_blank"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt; | &lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt; | &lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;| &lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 23:50:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2902312#M94569</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-11-13T23:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum columns filtering table on multiple containsstring values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2903539#M94645</link>
      <description>&lt;P&gt;Thank you very much, I will accept as solution (but wasn't sure if that will close this case!?) but either way I just wanted to ask one more question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can it just use the IN function to search anywhere in the CBS Name for NOP1 NOP2 NOP3, rather than search the first 4 left characters, as I can't guarantee they will always be there. I tried to remove the LEFT part but it didn’t like it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 11:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2903539#M94645</guid>
      <dc:creator>NMOORE</dc:creator>
      <dc:date>2022-11-14T11:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum columns filtering table on multiple containsstring values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2905468#M94777</link>
      <description>&lt;P&gt;Yes, If my solution works, it would be better&amp;nbsp;&lt;STRONG&gt;accepte&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly and close the case.&lt;BR /&gt;&lt;BR /&gt;You can change that to CONTAINSSTRING with some OR to cover those 3 conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.credly.com/users/vahid-doustimajd/badges" target="_blank"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt; | &lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt; | &lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;| &lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 06:20:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-filtering-table-on-multiple-containsstring-values/m-p/2905468#M94777</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-11-15T06:20:23Z</dc:date>
    </item>
  </channel>
</rss>

