<?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: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3721650#M144936</link>
    <description>&lt;P&gt;Jihwan_Kim's solution was a great help, but created a measure.&amp;nbsp; This was no good because I needed to do further calculateions and required a calculated column.&lt;BR /&gt;For others that may need help with SUMIF in DAX, this is what worked in the end.....&lt;BR /&gt;Calculated Column:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Expense = CALCULATE(
SUM(tblExpenses[Amount]),
FILTER(
    tblExpenses,
    tblActivities[ActivityId] = CALCULATE(VALUES(tblExpenses[ActivityID]))
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2024 06:39:00 GMT</pubDate>
    <dc:creator>Mikeincairns</dc:creator>
    <dc:date>2024-02-25T06:39:00Z</dc:date>
    <item>
      <title>No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3705980#M144163</link>
      <description>&lt;P&gt;Hi everyone.&amp;nbsp; I'm really hoping for a simple and logical solution please.&lt;BR /&gt;I am from the Excel world where this would be an easy SUMIF formula, but I am stumped in DAX.&amp;nbsp; Not sure the best function to apply.&lt;BR /&gt;I have two tables but they CANNOT be related in the PBI data model (due to other conflicting relationships).&lt;BR /&gt;I think the diagram explains everything......&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 03:17:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3705980#M144163</guid>
      <dc:creator>Mikeincairns</dc:creator>
      <dc:date>2024-02-19T03:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3705999#M144165</link>
      <description>&lt;P&gt;Read about TREATAS. It allows you to carry filters between unrelated tables.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 14:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3705999#M144165</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-18T14:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706130#M144181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Expense measure: =
SUMX (
    FILTER ( expenses, expenses[activity_id] IN VALUES ( activities[activity_id] ) ),
    expenses[amount]
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Feb 2024 17:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706130#M144181</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-02-18T17:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706636#M144195</link>
      <description>&lt;P&gt;Thanks so much for the suggestion Jhiwan_Kim.&amp;nbsp; And a big thank you for the sample file.&amp;nbsp; You are amazing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;From your file - ultimetly, I want to add Cost_01 + Cost_02 + Expense.&lt;BR /&gt;I think this is not possible when we use a Measure.&amp;nbsp; Perhaps there is another solution to get the Expense using a Calculated Column rather than a Measure???&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 03:12:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706636#M144195</guid>
      <dc:creator>Mikeincairns</dc:creator>
      <dc:date>2024-02-19T03:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706644#M144196</link>
      <description>&lt;P&gt;Thanks Ibendlin.&amp;nbsp; So many functions !!!&lt;BR /&gt;I have a (sort of) working solution CALCULATE(SUM(FILTER&lt;BR /&gt;And &lt;SPAN&gt;Jhiwan_Kim&amp;nbsp;&lt;/SPAN&gt;sugested a SUMX(FILTER IN VALUES&lt;BR /&gt;I will read about TREATAS and see how that might help.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 03:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706644#M144196</guid>
      <dc:creator>Mikeincairns</dc:creator>
      <dc:date>2024-02-19T03:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706755#M144197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not 100% sure if I understood your question correctly, but please try something like below. It is writing a 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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 04:41:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3706755#M144197</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-02-19T04:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: No SUMIF in DAX.  Please help with this SUM/LOOKUP/FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3721650#M144936</link>
      <description>&lt;P&gt;Jihwan_Kim's solution was a great help, but created a measure.&amp;nbsp; This was no good because I needed to do further calculateions and required a calculated column.&lt;BR /&gt;For others that may need help with SUMIF in DAX, this is what worked in the end.....&lt;BR /&gt;Calculated Column:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Expense = CALCULATE(
SUM(tblExpenses[Amount]),
FILTER(
    tblExpenses,
    tblActivities[ActivityId] = CALCULATE(VALUES(tblExpenses[ActivityID]))
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 06:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/No-SUMIF-in-DAX-Please-help-with-this-SUM-LOOKUP-FILTER/m-p/3721650#M144936</guid>
      <dc:creator>Mikeincairns</dc:creator>
      <dc:date>2024-02-25T06:39:00Z</dc:date>
    </item>
  </channel>
</rss>

