<?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 DAX Equivalent for Excel SUMIFS Where Lookup Field Contains Partial Text from Another Field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507493#M29219</link>
    <description>&lt;P&gt;Morning all,&lt;/P&gt;&lt;P&gt;I am relatively new to DAX and have scoured the forums but not found anything that quite works in Powerpivot/Dax yet.&lt;/P&gt;&lt;P&gt;I am trying to sum each record where the Member No is contained within the Hierarchy string e.g. the first Member No occurs in rows 1, 10 and 12 and sums to 23, whereas the 3rd Member No only appears in Hierarchy row 3 so sums to 3.&lt;/P&gt;&lt;P&gt;The excel formula is: SUMIFS([Amount],[Hierarchy],"*"&amp;amp;[Member No]&amp;amp;"*")&lt;/P&gt;&lt;P&gt;I tried adding "ab" to rows 5 &amp;amp; 9 as part of the attempt using the following formula to see if I could get close and then apply the "Like/contains" bit of logic but no luck: CALCULATE(SUM(Table1[Amount]),FILTER(Table1,FIND("ab",Table1[Hierarchy],,0)&amp;lt;&amp;gt;0))&lt;/P&gt;&lt;P&gt;I have also tried CALCULATE(SUM(Table1[Amount]),FILTER(Table1,Table1[Member No]=EARLIER(Table1[Member No]))) as a start, also with the idea of getting close and then adding the Hierarchy element, also with no luck.&lt;/P&gt;&lt;P&gt;Any help would be hugely appreciated! Hopefully the description is understandable. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 13:32:13 GMT</pubDate>
    <dc:creator>Merc100</dc:creator>
    <dc:date>2020-11-20T13:32:13Z</dc:date>
    <item>
      <title>DAX Equivalent for Excel SUMIFS Where Lookup Field Contains Partial Text from Another Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507493#M29219</link>
      <description>&lt;P&gt;Morning all,&lt;/P&gt;&lt;P&gt;I am relatively new to DAX and have scoured the forums but not found anything that quite works in Powerpivot/Dax yet.&lt;/P&gt;&lt;P&gt;I am trying to sum each record where the Member No is contained within the Hierarchy string e.g. the first Member No occurs in rows 1, 10 and 12 and sums to 23, whereas the 3rd Member No only appears in Hierarchy row 3 so sums to 3.&lt;/P&gt;&lt;P&gt;The excel formula is: SUMIFS([Amount],[Hierarchy],"*"&amp;amp;[Member No]&amp;amp;"*")&lt;/P&gt;&lt;P&gt;I tried adding "ab" to rows 5 &amp;amp; 9 as part of the attempt using the following formula to see if I could get close and then apply the "Like/contains" bit of logic but no luck: CALCULATE(SUM(Table1[Amount]),FILTER(Table1,FIND("ab",Table1[Hierarchy],,0)&amp;lt;&amp;gt;0))&lt;/P&gt;&lt;P&gt;I have also tried CALCULATE(SUM(Table1[Amount]),FILTER(Table1,Table1[Member No]=EARLIER(Table1[Member No]))) as a start, also with the idea of getting close and then adding the Hierarchy element, also with no luck.&lt;/P&gt;&lt;P&gt;Any help would be hugely appreciated! Hopefully the description is understandable. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 13:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507493#M29219</guid>
      <dc:creator>Merc100</dc:creator>
      <dc:date>2020-11-20T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Equivalent for Excel SUMIFS Where Lookup Field Contains Partial Text from Another Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507545#M29220</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204979" data-lia-user-login="Merc100" class="lia-mention lia-mention-user"&gt;Merc100&lt;/a&gt; , this should have worked&lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Table1[Amount]),FILTER(Table1,FIND("ab",Table1[Hierarchy],,0)&amp;lt;&amp;gt;0))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this too&lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Table1[Amount]),FILTER(Table1,search("ab",Table1[Hierarchy],,0)&amp;gt;0))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if not.&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>Fri, 20 Nov 2020 14:06:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507545#M29220</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-20T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Equivalent for Excel SUMIFS Where Lookup Field Contains Partial Text from Another Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507559#M29221</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204979" data-lia-user-login="Merc100" class="lia-mention lia-mention-user"&gt;Merc100&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below DAX in the calculated column.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Column =
SUMX (
    FILTER (
        ALL ( 'Table' ),
        PATHCONTAINS ( 'Table'[Hierarchy], EARLIER ( 'Table'[Member No] ) )
    ),
    'Table'[Amount]
)&lt;/LI-CODE&gt;
&lt;DIV class="UserSignature lia-message-signature"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 20px; border: solid #CCCCCC 1px; background: #fafafa url('/t5/image/serverpage/image-id/245255iBA79BC16F308A2DA/image-size/large/is-moderation-mode/true?v=1.0&amp;amp;px=999') no-repeat right 20px center; background-size: auto 40%;"&gt;&lt;FONT face="batang,apple gothic" size="3"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic" size="3"&gt;Nandu Krishna&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;Appreciate with a kudos&lt;/FONT&gt; &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;&lt;FONT face="batang,apple gothic" size="4"&gt;Proud to be a Super User!&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507559#M29221</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-11-20T14:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Equivalent for Excel SUMIFS Where Lookup Field Contains Partial Text from Another Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507681#M29225</link>
      <description>&lt;P&gt;Thank you Nandu, that worked perfectly!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 15:04:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507681#M29225</guid>
      <dc:creator>Merc100</dc:creator>
      <dc:date>2020-11-20T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Equivalent for Excel SUMIFS Where Lookup Field Contains Partial Text from Another Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507682#M29226</link>
      <description>&lt;P&gt;Thanks for taking the time to look&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;- much appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 15:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Equivalent-for-Excel-SUMIFS-Where-Lookup-Field-Contains/m-p/1507682#M29226</guid>
      <dc:creator>Merc100</dc:creator>
      <dc:date>2020-11-20T15:06:03Z</dc:date>
    </item>
  </channel>
</rss>

