<?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 Different YTD calculation method in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143941#M23030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yap. This is exactly what i was looking for. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 08:28:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-05T08:28:08Z</dc:date>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143934#M23023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm relatively new at Qlikview so excuse my ignorance….&lt;/P&gt;&lt;P&gt;I have the following scenario.&lt;/P&gt;&lt;P&gt;Set of KPIs needs to be presented in a pivot chart using the desired output&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.5pt; padding-right: 5.4pt; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;KPI Name&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;Value (&amp;lt;Current Period&amp;gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;YTD&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 1;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.5pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;KPI A&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;345&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;456&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 2;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.5pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;KPI B&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;35,67&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;909&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 3; mso-yfti-lastrow: yes;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.5pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;…&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;….&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #f0f0f0; padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 153.55pt; padding-right: 5.4pt; border-top: #f0f0f0; border-right: black 1pt solid; padding-top: 0cm; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="256"&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;…&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty standard, no? well the problem is each KPI has a different property and require different calculation method of the YTD. KPI A ask for the aggregated average for the YTD, while KPI B require the aggregated Sum of the YTD.&lt;/P&gt;&lt;P&gt;Any ideas how to do this?&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 20:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143934#M23023</guid>
      <dc:creator />
      <dc:date>2009-05-12T20:54:50Z</dc:date>
    </item>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143935#M23024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many different KPIs do you have? If there aren't too many, then you could probably use multiple if statements to handle it.&lt;/P&gt;&lt;P&gt;If(KPI='A', Avg(Agg), If(KPI='B', Sum(Agg)...&lt;/P&gt;&lt;P&gt;Could you handle it in the load script? It may be easier to create that table in your load script. Then, when formulas change, you only need to go back to the load script to edit it rather than having to look through multiple expressions.&lt;/P&gt;&lt;P&gt;This would be a great spot for user defined functions. Unfortunately, I don't think it's possible to create custom functions in QlikView. If anyone wants to start a petition to get user defined functions added to a future version, consider my name on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 21:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143935#M23024</guid>
      <dc:creator />
      <dc:date>2009-05-12T21:05:18Z</dc:date>
    </item>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143936#M23025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick respond.&lt;/P&gt;&lt;P&gt;Unfortunatly I have many KPIs and therefore, the formula needs to be define in external source at the script. Any Idea how I can do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 21:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143936#M23025</guid>
      <dc:creator />
      <dc:date>2009-05-12T21:59:45Z</dc:date>
    </item>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143937#M23026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you use a union to select each KPI separately in the load script?&lt;/P&gt;&lt;P&gt;SQL Select 'A' As KPI, Sum(Agg) As YTD...&lt;/P&gt;&lt;P&gt;Union Select 'B' As KPI, Avg(Agg) As YTD...&lt;/P&gt;&lt;P&gt;You should be able to union up all of your KPIs into one table and then you could use the YTD field directly in any expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 22:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143937#M23026</guid>
      <dc:creator />
      <dc:date>2009-05-12T22:17:15Z</dc:date>
    </item>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143938#M23027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatly I have 394 KPIs at the moment....and growing...&lt;/P&gt;&lt;P&gt;Is it possible to define the formula, let's say in excel file, load it as in-memory, bind it to the KPI table and calculate on the LOAD statement?&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 22:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143938#M23027</guid>
      <dc:creator />
      <dc:date>2009-05-12T22:23:52Z</dc:date>
    </item>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143939#M23028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! A while back, I had a project that needed to automatically answer various regulation questions. It was built in Access. I created a table that stored the questions and in one field, I added a SQL statement that could be used to pull the answer to the question. Then I was able to use VB to create a union on the fly. I don't know that QlikView could handle that last piece.&lt;/P&gt;&lt;P&gt;It would probably be ideal to have a table with every KPI and the definition of that KPI. You could bring that into QlikView, but I don't know how you could take a string expression ("Sum(Agg)") and force QlikView to evaluate the string rather than just print it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 22:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143939#M23028</guid>
      <dc:creator />
      <dc:date>2009-05-12T22:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143940#M23029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a table of expressions in excel/inline and read it into qlikview as a data island.&lt;/P&gt;&lt;P&gt;These can then be assigned to variables and use as expressions. (possibly other ways to do this)&lt;/P&gt;&lt;P&gt;see attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Dipesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 17:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143940#M23029</guid>
      <dc:creator />
      <dc:date>2011-12-02T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Different YTD calculation method</title>
      <link>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143941#M23030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yap. This is exactly what i was looking for. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 08:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-YTD-calculation-method/m-p/143941#M23030</guid>
      <dc:creator />
      <dc:date>2011-12-05T08:28:08Z</dc:date>
    </item>
  </channel>
</rss>

