<?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 Min/Max Date function in load script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123665#M19484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently having some trouble trying to write an expression to display the Minimum Quarter, Maximum Quarter, and the Maximum Quarter -1. I am not sure if I need to use set analysis or if there is a function to do this for me. I need to set them in the load script as fields because things become cluttered in my pivot table when adding as measures in the table.&amp;nbsp; I currently in my load script have this: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; QuarterName(AssessmentDate) AS Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(AssessmentDate) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterStart(AssessmentDate) AS InitialQuarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterEnd (AssessmentDate) AS CurrentQuarter, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When building my visual though it lists every quarter instead of a min and max and I cant seem to get any of the scripts I have tried to give me exactly what I need. I am fairly new to qlik sense so I may be completely off on how I am supposed to do this. Any advice would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 17:41:18 GMT</pubDate>
    <dc:creator>philip_radovich</dc:creator>
    <dc:date>2016-06-27T17:41:18Z</dc:date>
    <item>
      <title>Min/Max Date function in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123665#M19484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently having some trouble trying to write an expression to display the Minimum Quarter, Maximum Quarter, and the Maximum Quarter -1. I am not sure if I need to use set analysis or if there is a function to do this for me. I need to set them in the load script as fields because things become cluttered in my pivot table when adding as measures in the table.&amp;nbsp; I currently in my load script have this: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; QuarterName(AssessmentDate) AS Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(AssessmentDate) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterStart(AssessmentDate) AS InitialQuarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterEnd (AssessmentDate) AS CurrentQuarter, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When building my visual though it lists every quarter instead of a min and max and I cant seem to get any of the scripts I have tried to give me exactly what I need. I am fairly new to qlik sense so I may be completely off on how I am supposed to do this. Any advice would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 17:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123665#M19484</guid>
      <dc:creator>philip_radovich</dc:creator>
      <dc:date>2016-06-27T17:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Min/Max Date function in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123666#M19485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that it´s better to use variables. For Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vInitialQ: max(week(today()))&lt;/P&gt;&lt;P&gt;LET vStartQ: min(week(today()))&lt;/P&gt;&lt;P&gt;LET vEndQ: max(week(today())) -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can use the variables to your expression. Try it and tell me if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 06:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123666#M19485</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-06-28T06:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Min/Max Date function in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123667#M19486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to declare the variables without issue but when I try and add them into my expression I am receiving errors. I am not sure if I am adding them correctly though. When I added them to my expression all that showed was :&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(week(today())). I was adding them as master items. Do the variable need to be loaded again in my script before I can use them?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Philip Radovich &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123667#M19486</guid>
      <dc:creator>philip_radovich</dc:creator>
      <dc:date>2016-06-28T13:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Min/Max Date function in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123668#M19487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normaly it´s useful to declare our variables after main variables in script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to use it in a expression to need to put like: $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vEndQ)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try it and tell me if you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Miguel del Valle&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Max-Date-function-in-load-script/m-p/1123668#M19487</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-06-28T15:32:41Z</dc:date>
    </item>
  </channel>
</rss>

