<?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: Measure SUM in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2965681#M98973</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Days Difference =&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'Labor Cost per Day'[Person] ),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;VAR diff =&lt;BR /&gt;SUM ( 'Labor Cost per Day'[Person Traveling] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( diff &amp;gt;= 301, 0, 301 - diff )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 15:06:48 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-12-13T15:06:48Z</dc:date>
    <item>
      <title>Measure SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2965651#M98969</link>
      <description>&lt;P&gt;Hello, I have a table visual with number of travel and non travel days per emplyee. The requirements is that each person is supposed to travel 301 days out of the year, so I am trying to make a measure that shows the difference. I need that number to sum to a total at the bottom, but it doesn't and I dont know how to apply SUMx or SUM in this example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Note:&amp;nbsp;&lt;SPAN&gt;'Labor Cost per Day'&lt;/SPAN&gt;&lt;SPAN&gt;[Person Traveling&lt;/SPAN&gt;&lt;SPAN&gt;) is a value of 1 or 0 in&amp;nbsp; a calendar table. If person is traveling on that day, it's 1. If not, it's 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Days Difference = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//minimum is 43 weeks=301 days&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;diff&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Labor Cost per Day'&lt;/SPAN&gt;&lt;SPAN&gt;[Person Traveling&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(diff&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;301&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;301&lt;/SPAN&gt;&lt;SPAN&gt;-diff&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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>Tue, 13 Dec 2022 14:56:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2965651#M98969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-13T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Measure SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2965681#M98973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Days Difference =&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'Labor Cost per Day'[Person] ),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;VAR diff =&lt;BR /&gt;SUM ( 'Labor Cost per Day'[Person Traveling] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( diff &amp;gt;= 301, 0, 301 - diff )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 15:06:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2965681#M98973</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-13T15:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2971768#M99354</link>
      <description>&lt;P&gt;Thank you, that worked like a charm!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 20:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-SUM/m-p/2971768#M99354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T20:24:39Z</dc:date>
    </item>
  </channel>
</rss>

