<?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 How to sum multiple categories of the same variables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2478756#M67783</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to sum the amount of production per shift per machine.&amp;nbsp; &amp;nbsp; A single machine could have multiples production in the same shift due to multiple change over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to work with SUMX to have a consolidated sum per machine as example machine A09, in 3/1/2022 3rd shift produced a total of 5,336 units.&amp;nbsp; &amp;nbsp; But all the formula returned the same production 385,740,741....&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;P&gt;Please what would be the right formula and/or ?&amp;nbsp; &amp;nbsp;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 21:14:30 GMT</pubDate>
    <dc:creator>cesarllebron_1</dc:creator>
    <dc:date>2022-04-26T21:14:30Z</dc:date>
    <item>
      <title>How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2478756#M67783</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to sum the amount of production per shift per machine.&amp;nbsp; &amp;nbsp; A single machine could have multiples production in the same shift due to multiple change over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to work with SUMX to have a consolidated sum per machine as example machine A09, in 3/1/2022 3rd shift produced a total of 5,336 units.&amp;nbsp; &amp;nbsp; But all the formula returned the same production 385,740,741....&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;P&gt;Please what would be the right formula and/or ?&amp;nbsp; &amp;nbsp;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 21:14:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2478756#M67783</guid>
      <dc:creator>cesarllebron_1</dc:creator>
      <dc:date>2022-04-26T21:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2478926#M67791</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see file for solution for combining Date, Machine &amp;amp; Shift in an aggregation measure. You will see there is a preliminary measure for total production which is used in final measure. I will attach file for your convenience. The solution can be two different ways.&amp;nbsp; I named your data table "data. I added date table so you have more flexibility to see other time periods.&lt;/P&gt;&lt;P&gt;&lt;A title="Maquina &amp;amp; Turno" href="https://drive.google.com/file/d/1EkdopX-6MeF-LqzOJuCavzHMNFhR2RzP/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1EkdopX-6MeF-LqzOJuCavzHMNFhR2RzP/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Total Production&lt;/STRONG&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Produccion]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Machine &amp;amp; Shift Production&lt;/STRONG&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Total Production]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Maquina]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Data[Turno]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;SUMX Machine &amp;amp; Shift 2&lt;/STRONG&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;CALCULATE(SUMX(Data, Data[Produccion]),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ALLEXCEPT(Data, Data[Maquina], Data[Turno]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;*Note you could add this to last line of code if you wanted always just for a day at a time.(not likely)&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;SUMX Machine &amp;amp; Shift 3&lt;/STRONG&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Produccion]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Maquina]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Turno], Data[Fetcha]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Apr 2022 01:17:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2478926#M67791</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T01:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2483898#M68127</link>
      <description>&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp; &amp;nbsp;Its is possible to have the solution in a calculated column instead of measure.&lt;/P&gt;&lt;P&gt;I would like to have a calculated columns that sum the production by shift, as below example.&amp;nbsp; &amp;nbsp; If not problem if repeats the same value in the same shift.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide the right formula for this?&amp;nbsp; &amp;nbsp;I was trying to use If and SUM but not succesful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again!!!!&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;</description>
      <pubDate>Thu, 28 Apr 2022 16:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2483898#M68127</guid>
      <dc:creator>cesarllebron_1</dc:creator>
      <dc:date>2022-04-28T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2484417#M68149</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Yes you can do this. Here is calculated column using the same table names as yesterday. I added more data to test. Please accept as solution if this works for you. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Machine &amp;amp; Shift by Day Prod = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Produccion]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Turno]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Fetcha]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Apr 2022 01:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2484417#M68149</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-29T01:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2485624#M68228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did the formula, but noticed in the same date, 3rd shift had two machines working, A07 and A09.&amp;nbsp; The sum add all 3rd shift production for all machines.&amp;nbsp; &amp;nbsp;For machine A07 should be 500 as total production.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To figure if I can solve the issue, I add machines as filter, but I getting this error&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;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks again, I wait for your response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 11:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2485624#M68228</guid>
      <dc:creator>cesarllebron_1</dc:creator>
      <dc:date>2022-04-29T11:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2489344#M68468</link>
      <description>&lt;P&gt;Good Afternoon!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any response?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 18:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2489344#M68468</guid>
      <dc:creator>cesarllebron_1</dc:creator>
      <dc:date>2022-05-02T18:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2489640#M68505</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I apologize for being late. I was tested positive for Covid and not feeling great.&lt;/P&gt;&lt;P&gt;This Calculated column seems to be working?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Machine &amp;amp; Shift by Day Prod = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Produccion]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Turno]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Fetcha]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Data[Maquina]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Please find link with new dimension tables. I hope this is a good solution for you~&lt;/P&gt;&lt;P&gt;&lt;A title="Machine by Shift" href="https://drive.google.com/file/d/1EkdopX-6MeF-LqzOJuCavzHMNFhR2RzP/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1EkdopX-6MeF-LqzOJuCavzHMNFhR2RzP/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 May 2022 23:18:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2489640#M68505</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-02T23:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum multiple categories of the same variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2491082#M68585</link>
      <description>&lt;P&gt;Good Morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to hear that! I hope you are better and take care yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution, it works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just started to learn about Power Bi! and I need a lot of help!, I'm grateful for your support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cesar L. Lebron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 13:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-categories-of-the-same-variables/m-p/2491082#M68585</guid>
      <dc:creator>cesarllebron_1</dc:creator>
      <dc:date>2022-05-03T13:54:46Z</dc:date>
    </item>
  </channel>
</rss>

