<?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: Need help with Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359270#M1170021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an input box and display your variables &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;vMaxYear&lt;/SPAN&gt; and &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;vMaxMonth&lt;/SPAN&gt; to verify that you are getting what you expect, regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 19:07:32 GMT</pubDate>
    <dc:creator>edg_baltazar</dc:creator>
    <dc:date>2012-07-19T19:07:32Z</dc:date>
    <item>
      <title>Need help with Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359269#M1170018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the data as attached with fields as Store,MM,Month, Sales &amp;amp; Year. I have defined 2 variables as vMaxYear=max(Year) and vMaxMonth=max(Month_no).&lt;/P&gt;&lt;P&gt;I have seperately loaded an inline table linking the month corresponding to month_numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I use the following expression to show the monthly data in a straight table where I took store as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(vMaxYear)},Month_no={$(vMaxMonth)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The straight table doesn't fetch any result, after I selected a MM,Year, Month from my list boxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I change this expression to =Sum({$&amp;lt;Year={'2012'},Month_no={'2'}&amp;gt;}Sales) in a text object, I can see the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me understand, where am I going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also need to calculate YTD in this case, in the same straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359269#M1170018</guid>
      <dc:creator />
      <dc:date>2012-07-19T18:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359270#M1170021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an input box and display your variables &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;vMaxYear&lt;/SPAN&gt; and &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;vMaxMonth&lt;/SPAN&gt; to verify that you are getting what you expect, regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 19:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359270#M1170021</guid>
      <dc:creator>edg_baltazar</dc:creator>
      <dc:date>2012-07-19T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359271#M1170023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthKey, Month, Quarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Jan, Q1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Feb, Q1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Mar, Q1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Apr, Q2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, May, Q2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, Jun, Q2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, Jul, Q3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, Aug, Q3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, Sep, Q3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, Oct, Q4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11, Nov, Q4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12, Dec, Q4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in original table, use like this, &lt;/P&gt;&lt;P&gt;Load *, Month(Date) * 1 as MonthKey from tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use like this&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(vMaxYear)},Month_no={$(vMaxMonth)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where vMaxMonth = Max(MonthKey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 20:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Straight-table/m-p/359271#M1170023</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-19T20:08:02Z</dc:date>
    </item>
  </channel>
</rss>

