<?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 of a column error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958903#M11119</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="208944" data-lia-user-login="JamesGordon" class="lia-mention lia-mention-user"&gt;JamesGordon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] IN {21,29,27}))&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21 || Sheet[INV] = 29 || Sheet[INV] = 27))&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 04 Mar 2020 15:10:45 GMT</pubDate>
    <dc:creator>az38</dc:creator>
    <dc:date>2020-03-04T15:10:45Z</dc:date>
    <item>
      <title>Sum of a column error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958888#M11118</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying find the sum of a column with multiple filter values.&lt;/P&gt;&lt;P&gt;Screenshot below - I would like to calculate the total sum of hours from the "Hours" column if the INV column is value 21, 23, 27 ,28 etc.&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;I have tried the following DAX&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21&amp;amp;29&amp;amp;27))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But get the error also in the screenshot.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If i only want to filter by one value i.e 21 this DAX works&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a DAX to allow me to filter multiple values in the same column?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 14:58:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958888#M11118</guid>
      <dc:creator>JamesGordon</dc:creator>
      <dc:date>2020-03-04T14:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a column error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958903#M11119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="208944" data-lia-user-login="JamesGordon" class="lia-mention lia-mention-user"&gt;JamesGordon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] IN {21,29,27}))&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21 || Sheet[INV] = 29 || Sheet[INV] = 27))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958903#M11119</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-04T15:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a column error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958922#M11120</link>
      <description>&lt;P&gt;HI &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21 || Sheet[INV] = 29 || Sheet[INV] = 27))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one worked thank you!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:21:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-column-error/m-p/958922#M11120</guid>
      <dc:creator>JamesGordon</dc:creator>
      <dc:date>2020-03-04T15:21:18Z</dc:date>
    </item>
  </channel>
</rss>

