<?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 Help needed with expressions in the table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918861#M318514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm running into an issue , when trying to create table view with calculated rows and calculated columns.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV Question.JPG" class="jive-image image-1" src="/legacyfs/online/94318_QV Question.JPG" style="height: auto; float: none;" /&gt;&lt;/P&gt;&lt;P&gt;As you know, green area is not an issue, since it can be done through Calendar dim. Red one is the one I'm struggling with since Change and Change,% need to calculated on the fly based on Selections. Am I missing something?&lt;/P&gt;&lt;P&gt;I have tried to surf web but found close to nothing, if you happened to know good resources, please share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 23:57:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-28T23:57:36Z</dc:date>
    <item>
      <title>Help needed with expressions in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918861#M318514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm running into an issue , when trying to create table view with calculated rows and calculated columns.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV Question.JPG" class="jive-image image-1" src="/legacyfs/online/94318_QV Question.JPG" style="height: auto; float: none;" /&gt;&lt;/P&gt;&lt;P&gt;As you know, green area is not an issue, since it can be done through Calendar dim. Red one is the one I'm struggling with since Change and Change,% need to calculated on the fly based on Selections. Am I missing something?&lt;/P&gt;&lt;P&gt;I have tried to surf web but found close to nothing, if you happened to know good resources, please share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 23:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918861#M318514</guid>
      <dc:creator />
      <dc:date>2015-07-28T23:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expressions in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918862#M318515</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;There are some questions about your issue.&lt;/P&gt;&lt;P&gt;Is year a dimension?&lt;/P&gt;&lt;P&gt;If the answer Yes then: What a behavior do you expect for situation when users select more than 2 years. I mean columns Change and Change%.&lt;/P&gt;&lt;P&gt;If we are talking about only 2 selected years then we can use following approach:&lt;/P&gt;&lt;P&gt;1. Create table for "dimensions"&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Dim&lt;/P&gt;&lt;P&gt;Avg Mbr Count&lt;/P&gt;&lt;P&gt;Cost Per Member&lt;/P&gt;&lt;P&gt;Cost Per Contract&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add 4 expressions&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Lable: =min(Year)&lt;/P&gt;&lt;P&gt;Definision:&lt;/P&gt;&lt;P&gt;if(Dim='&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Avg Mbr Count&lt;/SPAN&gt;',count({$&amp;lt;Year={$(=min(Year))}&amp;gt;} MemberName),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(Dim='&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Cost Per Member&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;', &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({$&amp;lt;Year={$(=min(Year))}&amp;gt;} CostValue)/&lt;/SPAN&gt;count({$&amp;lt;Year={$(=min(Year))}&amp;gt;} MemberName),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(Dim='&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Cost Per Member&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;', &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({$&amp;lt;Year={$(=min(Year))}&amp;gt;} CostValue)/&lt;/SPAN&gt;count({$&amp;lt;Year={$(=min(Year))}&amp;gt;} Contract))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 15:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918862#M318515</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-07-29T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expressions in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918863#M318516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Thank you for your quick reply, Sergey. Provided clue is right on the money.&lt;/P&gt;&lt;P&gt;Exact behaviour and details were to much to explain but your answer is a huge help. A+&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 16:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expressions-in-the-table/m-p/918863#M318516</guid>
      <dc:creator />
      <dc:date>2015-08-05T16:20:20Z</dc:date>
    </item>
  </channel>
</rss>

