<?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: Graph help - MTD vs. YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870112#M1015379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this for you expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum ({&amp;lt;[MONTH-NUMERIC] = {"&amp;lt;=$(=max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[MONTH-NUMERIC] &lt;/SPAN&gt;))"}, YEAR={'2015'}&amp;gt;}losses)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming you were trying to use the max month numeric, right ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 19:51:34 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-07T19:51:34Z</dc:date>
    <item>
      <title>Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870111#M1015378</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 have tried to read multiple discussion threads and I cannot seem to convert the information into what is needed.&amp;nbsp; I am looking to create a graph that shows 3 years of monthly trends, and the current year's YTD trend.&amp;nbsp; So far I have only been able to create the monthly trends.&amp;nbsp; Here is what I am using so far&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions - Month and then Year&lt;/P&gt;&lt;P&gt;Expressions - Sum(2015 losses)/sum(2015 premiums)&lt;/P&gt;&lt;P&gt;Sum(2014 losses)/sum(2014 premiums)&lt;/P&gt;&lt;P&gt;Sum(Plan Losses)/sum(plan premiums)&lt;/P&gt;&lt;P&gt;What I am trying to use for YTD incorrectly - &lt;/P&gt;&lt;P&gt;=(Sum ({&amp;lt;[MONTH-NUMERIC] = {"&amp;lt;=$(=max({&amp;lt;YEAR={$(=max(YEAR))}&amp;gt;} [MONTH-NUMERIC]))"}, YEAR={'2015'}&amp;gt;}losses)/&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt; [MONTH-NUMERIC] = {"&amp;lt;=$(=max({&amp;lt;YEAR={$(=max(YEAR))}&amp;gt;} [MONTH-NUMERIC]))"}, YEAR={'2015'}&amp;gt;}[premium))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point my data is in Month, Year, and I have a date field I am not using currently of YYYY/MMM.&amp;nbsp; I have read in several articles about a master calendar but I am not sure how to implement with just using month and year.&amp;nbsp; Looking for some help in the right direction to complete the graph properly.&amp;nbsp; Shown below is the graph so far, with both YTD 2015 and MTD 2015 on top of each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sales graph.png" class="jive-image image-1" src="/legacyfs/online/83057_sales graph.png" style="height: 210px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870111#M1015378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T19:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870112#M1015379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this for you expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum ({&amp;lt;[MONTH-NUMERIC] = {"&amp;lt;=$(=max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[MONTH-NUMERIC] &lt;/SPAN&gt;))"}, YEAR={'2015'}&amp;gt;}losses)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming you were trying to use the max month numeric, right ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870112#M1015379</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-07T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870113#M1015380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&amp;nbsp; I was looking to plot year to date for each month.&amp;nbsp; So for Jan it would only be the Jan numbers for the YTD.&amp;nbsp; For Feb it would be a blend of both Feb and Jan.&amp;nbsp; Will this new set analysis achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870113#M1015380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T19:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870114#M1015381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use full accumulation under expression &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870114#M1015381</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-07T20:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870115#M1015382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do the full accumulation the expression does not behave normally.&amp;nbsp; The results should be between 70% and 60% and with full accumulation for the YTD it goes into the 130% range with the following picture:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sales graph3.png" class="jive-image image-1" src="/legacyfs/online/83058_sales graph3.png" style="height: 213px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870115#M1015382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T20:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870116#M1015383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share some of the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870116#M1015383</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-07T20:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870117#M1015384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is my QVW file.&amp;nbsp; Month two for the year to date should come out to 64.2%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870117#M1015384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T20:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870118#M1015385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe another way to do is create another field i.e. "as of" month. See the attached file. Not a complete solution, just another approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 21:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870118#M1015385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T21:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870119#M1015386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amarbogam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&amp;nbsp; On the update, how would I add in the YTD field to the first graph?&amp;nbsp; Also, I would like to only show through Feb on the YTD graph.&amp;nbsp; When I just try to add it to the first graph, it does show properly.&amp;nbsp; It shows as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sales graph.png" class="jive-image image-1" src="/legacyfs/online/83114_sales graph.png" style="height: 413px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have the bar graph below only through February, added to the top graph if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 13:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870119#M1015386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T13:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870120#M1015387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached file.I had to modify your expressions though. Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870120#M1015387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T18:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870121#M1015388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&amp;nbsp; Would I be able to use Set analysis for the If statements?&amp;nbsp; Or just use one if statement for the dimension?&amp;nbsp; Just wondering if there was a way to do it with less if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870121#M1015388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T19:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870122#M1015389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually with set analysis we wouldn't be able to compare to fields that's why I replaced it with sum if statements but if you have too many conditions I would normally create a flag in the script and use it in the expressions i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- if ([CAT IND]&lt;SPAN style="font-size: 8pt;"&gt;='N' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[NEW RENEW IND]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='NEW' ,1,0) as Flag_Condition1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(Value*Flag_Condition1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I&amp;nbsp; would keep the expression as simple as possible and handle all the complexity in the backend as much as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870122#M1015389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T19:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Graph help - MTD vs. YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870123#M1015390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is helpful to know.&amp;nbsp; Thank you so much for the help with this.&amp;nbsp; I will give that a try with the flag to see how it works out.&amp;nbsp; Seems easy and helpful.&amp;nbsp; Could I do something similar for the plan years I have?&amp;nbsp; Having a text with all numbers seems to have given me problems so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-help-MTD-vs-YTD/m-p/870123#M1015390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T19:55:13Z</dc:date>
    </item>
  </channel>
</rss>

