<?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 Analysis Formula ? newbie help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407201#M490858</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;Try max() instead of only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt; FISCAL_MONTH = {$(=max(FISCAL_MONTH)-1)}&amp;gt;} BOOKING_USD)&amp;nbsp; / sum(BOOKING_UNITS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 01:58:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-12T01:58:26Z</dc:date>
    <item>
      <title>Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407200#M490857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im fairly new to developing in Qlikview (as well as developing in general) and need some expression scripting help. I previously focused on Qlikview Dashboard UI design, but due to some employee shuffling, im being asked to do more data crunching and scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to build an expression where i have the values "FISCAL_MONTH" , "BOOKINGS_UNITS" and "BOOKING_USD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what im trying to accomplish is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOOKING_USD (from September for example) / BOOKING_UNITS (from October) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would i make an expression that would draw numbers from the last month, then divide that value by data of the current month? &lt;/P&gt;&lt;P&gt;FISCAL_MONTH data is listed out as 1-12. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted building this expression (again, new at scripting) but id doesnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum( { $ &amp;lt; FISCAL_MONTH = { $ (=only(FISCAL_MONTH) -1 ) } &amp;gt; } BOOKING_USD ) )&amp;nbsp; / sum(BOOKING_UNITS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions? am i way off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 23:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407200#M490857</guid>
      <dc:creator />
      <dc:date>2012-10-11T23:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407201#M490858</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;Try max() instead of only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt; FISCAL_MONTH = {$(=max(FISCAL_MONTH)-1)}&amp;gt;} BOOKING_USD)&amp;nbsp; / sum(BOOKING_UNITS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 01:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407201#M490858</guid>
      <dc:creator />
      <dc:date>2012-10-12T01:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407202#M490859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 13px; background-color: #ffffff;"&gt;(sum( { $ &amp;lt; FISCAL_MONTH = { $ (=max(FISCAL_MONTH) -1 ) } &amp;gt; } BOOKING_USD )&amp;nbsp;&amp;nbsp; / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 13px; background-color: #ffffff; font-family: Arial;"&gt;sum( { $ &amp;lt; FISCAL_MONTH = { $ (=max(FISCAL_MONTH) ) } &amp;gt; } BOOKING_USD )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 13px; background-color: #ffffff; font-family: Arial;"&gt;Hope to help!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 06:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407202#M490859</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-10-12T06:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407203#M490860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm,&lt;/P&gt;&lt;P&gt;again, both posts look like logical statements and makes sense to me, but I'm still getting the same null value. to check my data, i made a sample table of data for both BOOKING_USD and BOOKING_UNITS and the values exist, but cant figure out why this wouldn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a possibility that when calculating the first displayable month, it can't draw the month before, causing a string of null values? (ie: first month recorded is August, no data for July can be found)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 16:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407203#M490860</guid>
      <dc:creator />
      <dc:date>2012-10-15T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407204#M490861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u plz share ur SAMPLE DATA so that we could help u more efficienty..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 04:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407204#M490861</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-10-16T04:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407205#M490862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this,its a very clever tool developed by &lt;SPAN style="color: #666666; font-family: Arial; background-color: #ffffff;"&gt;Stefan Walther&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;It makes set analysis Childs play&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa="&gt;http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can see above it could have something to do with the format your date is in &lt;/P&gt;&lt;P&gt;try putting &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=max(FISCAL_MONTH) -1 &lt;/SPAN&gt; into a text object and see what it returns &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 05:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407205#M490862</guid>
      <dc:creator>ashkrit501</dc:creator>
      <dc:date>2012-10-16T05:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407206#M490863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( { DateField={'&amp;gt;=$(=MonthStart(Max(DateField), -1))&amp;lt;=$(=MonthEnd(Max(DateField), -1))'} &amp;gt; } BOOKING_USD)&amp;nbsp; / &lt;/P&gt;&lt;P&gt;sum( { DateField={'&amp;gt;=$(=MonthStart(Max(DateField)))&amp;lt;=$(=Today())'} &amp;gt; }BOOKING_UNITS )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 06:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407206#M490863</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-10-16T06:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula ? newbie help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407207#M490864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone for your support, i've learned quite a bit more about set analysis and i tried many of your suggestions. i got it working correctly with the test data i was about to upload (using the set analysis wizard, thanks &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/ashkrit501" id="jive-937774326152787677916" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;ashkrit501&lt;/A&gt;) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also recieved a response from my database contact. He double checked the backend and there was an issue that there were gaps in our BOOKING_USD field, which may have caused the null values popping up for our test Product we used when making our Qlikview Dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 22:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-newbie-help/m-p/407207#M490864</guid>
      <dc:creator />
      <dc:date>2012-10-22T22:57:50Z</dc:date>
    </item>
  </channel>
</rss>

