<?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 SET Analysis | Sum only to month in dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828305#M68221</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem with a measure where i need a sum of hours of the months until the month on the x-axis.&lt;BR /&gt;This is my example data to show my problem:&lt;/P&gt;&lt;P&gt;// This data shows the used hours per work package per month&lt;BR /&gt;DATA1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;WorkPackage, MonthOfHour, Hours&lt;BR /&gt;...&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;// This data shows the status the work packages had in the recent months&lt;BR /&gt;DATA2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;WorkPackage, MonthOfHistory, Status&lt;BR /&gt;...&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;My goal is the following:&lt;BR /&gt;I need to do a line chart where i show how much hours went to the work packages with status = x in the past.&lt;BR /&gt;That means ...&lt;BR /&gt;- on the xAxis i need to put the MonthOfHistory&lt;BR /&gt;- as a measure i need &lt;STRONG&gt;the sum of hours for the work-packages until MonthOfHistory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So my measure formular would look like this, however i dont know how to define that only the hours up to MonthOfHistory will be summed up.&lt;/P&gt;&lt;P&gt;Sum&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $&amp;lt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status = {'x'},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;MonthOfHour = {"&amp;lt;=MonthOfHistory"}&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Hours&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Can anybody help me with this?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 15:09:34 GMT</pubDate>
    <dc:creator>schmidtj</dc:creator>
    <dc:date>2021-08-12T15:09:34Z</dc:date>
    <item>
      <title>SET Analysis | Sum only to month in dimension</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828305#M68221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem with a measure where i need a sum of hours of the months until the month on the x-axis.&lt;BR /&gt;This is my example data to show my problem:&lt;/P&gt;&lt;P&gt;// This data shows the used hours per work package per month&lt;BR /&gt;DATA1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;WorkPackage, MonthOfHour, Hours&lt;BR /&gt;...&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;// This data shows the status the work packages had in the recent months&lt;BR /&gt;DATA2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;WorkPackage, MonthOfHistory, Status&lt;BR /&gt;...&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;My goal is the following:&lt;BR /&gt;I need to do a line chart where i show how much hours went to the work packages with status = x in the past.&lt;BR /&gt;That means ...&lt;BR /&gt;- on the xAxis i need to put the MonthOfHistory&lt;BR /&gt;- as a measure i need &lt;STRONG&gt;the sum of hours for the work-packages until MonthOfHistory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So my measure formular would look like this, however i dont know how to define that only the hours up to MonthOfHistory will be summed up.&lt;/P&gt;&lt;P&gt;Sum&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $&amp;lt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status = {'x'},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;MonthOfHour = {"&amp;lt;=MonthOfHistory"}&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Hours&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Can anybody help me with this?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 15:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828305#M68221</guid>
      <dc:creator>schmidtj</dc:creator>
      <dc:date>2021-08-12T15:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis | Sum only to month in dimension</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828402#M68245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/21120"&gt;@schmidtj&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;MonthOfHistory&amp;nbsp;&lt;/EM&gt;&amp;amp; MonthOfHour are in date format or month name like Jan, feb, etc?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MonthOfHistory&amp;nbsp; &amp;lt;-&lt;/EM&gt; is upto last month?&lt;/P&gt;&lt;P&gt;MonthOfHour &amp;lt;-- is contains all months upto current month?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 04:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828402#M68245</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-08-13T04:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis | Sum only to month in dimension</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828411#M68248</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;- yes,&amp;nbsp;&lt;EM&gt;MonthOfHistory&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;&amp;amp; MonthOfHour are in date format&lt;BR /&gt;-&amp;nbsp;&lt;EM&gt;MonthOfHistory has data for every month in the past until actual month&lt;BR /&gt;- yes,&amp;nbsp;MonthOfHour&amp;nbsp;contains all months upto current month&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Thanks!&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 06:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828411#M68248</guid>
      <dc:creator>schmidtj</dc:creator>
      <dc:date>2021-08-13T06:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis | Sum only to month in dimension</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828425#M68252</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In that case, try like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Status = {'x'},&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;MonthOfHour = {"&amp;lt;=$(=Date(Max(MonthOfHistory))"}&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}&lt;/SPAN&gt;&lt;SPAN&gt;Hours)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Join/Concatenate the both tables based on&amp;nbsp; combination of workplace &amp;amp; monthofhistory and W&lt;EM&gt;orkplace&amp;amp;MonthOfHour.&amp;nbsp; And create the&amp;nbsp; Mastercalendar based on the date field and use it in the line chart&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Ex;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Dim: MonthName&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Exp: Sum({&amp;lt;&amp;nbsp;Status = {'x'}&amp;gt;&amp;nbsp;}Hours)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 07:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828425#M68252</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-08-13T07:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis | Sum only to month in dimension</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828766#M68292</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I tried it like that before but it is not working i'm sorry.&lt;BR /&gt;The&amp;nbsp;&lt;EM&gt;Max(MonthOfHistory)&lt;/EM&gt; will get you the max Date on the overall data but not in relation to the date on the x-axis.&lt;BR /&gt;So the formular on the right in SET ANALYSIS doesnt really care about the chart unfortunately &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 10:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828766#M68292</guid>
      <dc:creator>schmidtj</dc:creator>
      <dc:date>2021-08-16T10:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis | Sum only to month in dimension</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828936#M68322</link>
      <description>&lt;P&gt;Can you send the sample with expected o/p?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 02:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Sum-only-to-month-in-dimension/m-p/1828936#M68322</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-08-17T02:36:56Z</dc:date>
    </item>
  </channel>
</rss>

