<?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: DAX equivalent for sumif in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722561#M180881</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1286315" data-lia-user-login="ottster" class="lia-mention lia-mention-user"&gt;ottster&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;It looks like you want to add two columns into one single column and if this successfully happens then return '1' or else return '0'. As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="526044" data-lia-user-login="maruthisp" class="lia-mention lia-mention-user"&gt;maruthisp&lt;/a&gt;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927426" data-lia-user-login="SamsonTruong" class="lia-mention lia-mention-user"&gt;SamsonTruong&lt;/a&gt;&amp;nbsp;all have already responded to your query, kindly go through their responses and check if it answers your requirements. And if it does then kindly mark the helpful reply as solution so that other commuity members with similar issue can find the solution easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="526044" data-lia-user-login="maruthisp" class="lia-mention lia-mention-user"&gt;maruthisp&lt;/a&gt;, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927426" data-lia-user-login="SamsonTruong" class="lia-mention lia-mention-user"&gt;SamsonTruong&lt;/a&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 07:14:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-06-06T07:14:41Z</dc:date>
    <item>
      <title>DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4721648#M180846</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel I'd use a sumif function to add 2 columns and if they added to 2 to return a 1 otherwise a 0. I've tried every which way to do this using DAX but it's always the wrong answer compared to excel - how do i do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In excel to create the column called call 1 and call 2 i'd use this formula:&amp;nbsp;=IF(SUM(FL2:FM2)=2,1,0), how can i replicate this in DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0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t;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 05 Jun 2025 14:40:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4721648#M180846</guid>
      <dc:creator>ottster</dc:creator>
      <dc:date>2025-06-05T14:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4721749#M180848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1286315" data-lia-user-login="ottster" class="lia-mention lia-mention-user"&gt;ottster&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;To replicate this in DAX, you can use the folllowing DAX calculated column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DAX = 
IF(
    'YourTable'[Call 1] + 'YourTable'[Call 2] = 2,
    1,
    0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Samson&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 15:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4721749#M180848</guid>
      <dc:creator>SamsonTruong</dc:creator>
      <dc:date>2025-06-05T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4721946#M180856</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1286315" data-lia-user-login="ottster" class="lia-mention lia-mention-user"&gt;ottster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To replicate your Excel formula &lt;EM&gt;=IF(SUM(FL2:FM2)=2,1,0)&lt;/EM&gt; in DAX, you’ll use a calculated column that checks the sum of two columns (e.g., [call 1] and [call 2]) and returns 1 if the sum equals 2, else 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Assuming your columns are named [call 1] and [call 2], use this formula in a new calculated column:&lt;/P&gt;&lt;PRE&gt;call 1 and call 2 = &lt;BR /&gt;IF([call 1] + [call 2] = 2, &lt;BR /&gt;   1, &lt;BR /&gt;   0)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This works exactly like your Excel logic:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;It adds the values in [call 1] and [call 2] for each row.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If the result is 2, it returns 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Otherwise, it returns 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to Add This in Power BI:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Go to your table in Data view.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click "New Column".&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Paste the formula shown above.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Rename the column if needed.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 18:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4721946#M180856</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-05T18:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722148#M180865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1286315" target="_self"&gt;&lt;SPAN class=""&gt;ottster&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Based on your example, you may use below DAX expression to solve your problem:&lt;BR /&gt;Call1AndCall2 =&lt;BR /&gt;IF(&lt;BR /&gt;'CallData'[Call1] + 'CallData'[Call2] = 2,&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope the above DAX expression may help you.&lt;/P&gt;&lt;P&gt;Please let me know if you have further questions.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too.&amp;nbsp;And if you found it useful, a quick "Kudos" is always appreciated, thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maruthi&amp;nbsp;&lt;/P&gt;&lt;P&gt;LinkedIn -&amp;nbsp;&lt;A href="http://www.linkedin.com/in/maruthi-siva-prasad/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.linkedin.com/in/maruthi-siva-prasad/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&lt;A href="https://x.com/maruthisp" target="_blank" rel="nofollow noopener noreferrer"&gt;Maruthi Siva Prasad - (@MaruthiSP) / X&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 01:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722148#M180865</guid>
      <dc:creator>maruthisp</dc:creator>
      <dc:date>2025-06-06T01:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722561#M180881</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1286315" data-lia-user-login="ottster" class="lia-mention lia-mention-user"&gt;ottster&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;It looks like you want to add two columns into one single column and if this successfully happens then return '1' or else return '0'. As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="526044" data-lia-user-login="maruthisp" class="lia-mention lia-mention-user"&gt;maruthisp&lt;/a&gt;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927426" data-lia-user-login="SamsonTruong" class="lia-mention lia-mention-user"&gt;SamsonTruong&lt;/a&gt;&amp;nbsp;all have already responded to your query, kindly go through their responses and check if it answers your requirements. And if it does then kindly mark the helpful reply as solution so that other commuity members with similar issue can find the solution easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="526044" data-lia-user-login="maruthisp" class="lia-mention lia-mention-user"&gt;maruthisp&lt;/a&gt;, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927426" data-lia-user-login="SamsonTruong" class="lia-mention lia-mention-user"&gt;SamsonTruong&lt;/a&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 07:14:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722561#M180881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-06T07:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722563#M180882</link>
      <description>&lt;P&gt;Thanks all for coming back to me, i did try this yesterday and the answer i got was the same which i thought was wrong - turns out i needed to split the table and add a filter on for the data which overlaps. DOH!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="526044" data-lia-user-login="maruthisp" class="lia-mention lia-mention-user"&gt;maruthisp&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927426" data-lia-user-login="SamsonTruong" class="lia-mention lia-mention-user"&gt;SamsonTruong&lt;/a&gt;&amp;nbsp;I shall remember you all for me next problem!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 07:15:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722563#M180882</guid>
      <dc:creator>ottster</dc:creator>
      <dc:date>2025-06-06T07:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX equivalent for sumif</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722568#M180884</link>
      <description>&lt;P&gt;Glad to hear a solution was found!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 07:18:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-equivalent-for-sumif/m-p/4722568#M180884</guid>
      <dc:creator>SamsonTruong</dc:creator>
      <dc:date>2025-06-06T07:18:25Z</dc:date>
    </item>
  </channel>
</rss>

