<?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: set expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967178#M468202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can create field &lt;SPAN style="color: #339966;"&gt;"[Transaction Fiscal Year]&amp;amp;[Transaction Fiscal Quarter] as Transaction_Fiscal_YearQuarter "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in your edit script, then set the variable that calculated the maximum YearQuarter like below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;V_MaxYearQuarter = max(Transaction_Fiscal_YearQuarter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if you want to calculated the max Year Quarter at all you can use "All" keyword :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;V_MaxYearQuarter = max(all Transaction_Fiscal_YearQuarter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;at the end your expression should be like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;sum({&amp;lt;&lt;SPAN style="color: #339966;"&gt;Transaction_Fiscal_YearQuarter&amp;nbsp; = {$(&lt;SPAN style="color: #339966;"&gt;V_MaxYearQuarter&lt;/SPAN&gt;)}&lt;/SPAN&gt;&amp;gt;}sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 05:46:33 GMT</pubDate>
    <dc:creator>jafari_ervin</dc:creator>
    <dc:date>2015-09-17T05:46:33Z</dc:date>
    <item>
      <title>set expression help</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967176#M468200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to formulate a set expression that gives me the sum of sales for my QTD for my current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;[Transaction Fiscal Year] = {$(=max([Transaction Fiscal Year]))},&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Transaction Fiscal Quarter] = {$(=max([Transaction Fiscal Quarter]))} &amp;gt;} sales&amp;nbsp; ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to add a year modifier to get me the sales for the latest year/latest quarter, I've not structure this the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 05:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967176#M468200</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2015-09-17T05:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: set expression help</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967177#M468201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Perhaps like this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=sum( {$&amp;lt;[Transaction Fiscal Year] = {$(=max([Transaction Fiscal Year]))},&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Transaction Fiscal Quarter] = {$(=max({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Transaction Fiscal Year] = {$(=max([Transaction Fiscal Year]))}&amp;gt;}&lt;/SPAN&gt;[Transaction Fiscal Quarter]))} &amp;gt;} sales&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If not, please post a small qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 05:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967177#M468201</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-17T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: set expression help</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967178#M468202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can create field &lt;SPAN style="color: #339966;"&gt;"[Transaction Fiscal Year]&amp;amp;[Transaction Fiscal Quarter] as Transaction_Fiscal_YearQuarter "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in your edit script, then set the variable that calculated the maximum YearQuarter like below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;V_MaxYearQuarter = max(Transaction_Fiscal_YearQuarter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if you want to calculated the max Year Quarter at all you can use "All" keyword :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;V_MaxYearQuarter = max(all Transaction_Fiscal_YearQuarter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;at the end your expression should be like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;sum({&amp;lt;&lt;SPAN style="color: #339966;"&gt;Transaction_Fiscal_YearQuarter&amp;nbsp; = {$(&lt;SPAN style="color: #339966;"&gt;V_MaxYearQuarter&lt;/SPAN&gt;)}&lt;/SPAN&gt;&amp;gt;}sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 05:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-help/m-p/967178#M468202</guid>
      <dc:creator>jafari_ervin</dc:creator>
      <dc:date>2015-09-17T05:46:33Z</dc:date>
    </item>
  </channel>
</rss>

