<?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 for measure -Sum with condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2023109#M45130</link>
    <description>&lt;P&gt;&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;Sorry to tag you like that but saw your replies on various queries so thought you might be the right person. Any ideas about this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Radhika&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 09:19:19 GMT</pubDate>
    <dc:creator>Radhika2605</dc:creator>
    <dc:date>2021-08-18T09:19:19Z</dc:date>
    <item>
      <title>DAX for measure -Sum with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2021483#M45053</link>
      <description>&lt;P&gt;Hi PBI experts&lt;/P&gt;&lt;P&gt;I am unable to write DAX for below scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In given Data&amp;nbsp; table, measure to find out sum of qty where&amp;nbsp; at least one of Com typ is C for each ID&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;Com typ&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;TD&gt;Qty.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/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t;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result- 555&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 14:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2021483#M45053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-17T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for measure -Sum with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2021569#M45058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the following DAX function -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum Of Quantity = CALCULATE( SUM ('Table'[Qty]), FILTER ('Table', 'Table'[Com typ]) = 'C' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Radhika&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2021569#M45058</guid>
      <dc:creator>Radhika2605</dc:creator>
      <dc:date>2021-08-17T15:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for measure -Sum with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2021665#M45067</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319182" data-lia-user-login="Radhika2605" class="lia-mention lia-mention-user"&gt;Radhika2605&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reply but this DAX will filter C and&amp;nbsp; sum of only those qty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I need sum of all the rows (Qty) for IDs which have com typ as C. In above data except ID 382991 all others have C so, result as 555.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 16:42:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2021665#M45067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-17T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for measure -Sum with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2023109#M45130</link>
      <description>&lt;P&gt;&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;Sorry to tag you like that but saw your replies on various queries so thought you might be the right person. Any ideas about this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Radhika&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 09:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-measure-Sum-with-condition/m-p/2023109#M45130</guid>
      <dc:creator>Radhika2605</dc:creator>
      <dc:date>2021-08-18T09:19:19Z</dc:date>
    </item>
  </channel>
</rss>

