<?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 Calculate only Child value when Parent value is selected. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216640#M389591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Qlik Masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good day to you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Fact table that consists of &lt;STRONG&gt;Regional&lt;/STRONG&gt; and &lt;STRONG&gt;Value&lt;/STRONG&gt; columns, like so.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152098" alt="Fact Table sample.PNG" class="jive-image image-1" height="229" src="/legacyfs/online/152098_Fact Table sample.PNG" style="height: 229px; width: 227.252px;" width="227" /&gt;&lt;/P&gt;&lt;P&gt;I have a Dimension called &lt;STRONG&gt;Dim_Region&lt;/STRONG&gt; table that consists of &lt;STRONG&gt;Regional&lt;/STRONG&gt; and &lt;STRONG&gt;Area&lt;/STRONG&gt; columns, like so.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152102" alt="Dim Table sample.PNG" class="jive-image image-2" height="234" src="/legacyfs/online/152102_Dim Table sample.PNG" style="height: 234px; width: 240.568px;" width="241" /&gt;&lt;/P&gt;&lt;P&gt;Both tables are linked using the &lt;STRONG&gt;Regional&lt;/STRONG&gt; columns.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regional&lt;/STRONG&gt; acts as the &lt;STRONG&gt;Parent&lt;/STRONG&gt; and &lt;STRONG&gt;Area&lt;/STRONG&gt; acts as the &lt;STRONG&gt;Child.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to create a straight table with expression to Sum the Value but based on the value of the children's value when the parent is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any workaround for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user chooses Regional = NATIONAL, then the table should consists of Values of NATIONAL's children (REGIONAL A, REGIONAL B, REGIONAL C, REGIONAL D, REGIONAL E.....REGIONAL L). The expected result is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152103" alt="Main Analysis.PNG" class="jive-image image-3" height="176" src="/legacyfs/online/152103_Main Analysis.PNG" style="height: 175.597px; width: 570px;" width="570" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;The chart above is still hardcoded. So it is still wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. And feel free to ask if there's any question regarding my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find it in the attached QVW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Adam Ginza--&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 07:18:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-06T07:18:42Z</dc:date>
    <item>
      <title>Calculate only Child value when Parent value is selected.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216640#M389591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Qlik Masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good day to you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Fact table that consists of &lt;STRONG&gt;Regional&lt;/STRONG&gt; and &lt;STRONG&gt;Value&lt;/STRONG&gt; columns, like so.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152098" alt="Fact Table sample.PNG" class="jive-image image-1" height="229" src="/legacyfs/online/152098_Fact Table sample.PNG" style="height: 229px; width: 227.252px;" width="227" /&gt;&lt;/P&gt;&lt;P&gt;I have a Dimension called &lt;STRONG&gt;Dim_Region&lt;/STRONG&gt; table that consists of &lt;STRONG&gt;Regional&lt;/STRONG&gt; and &lt;STRONG&gt;Area&lt;/STRONG&gt; columns, like so.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152102" alt="Dim Table sample.PNG" class="jive-image image-2" height="234" src="/legacyfs/online/152102_Dim Table sample.PNG" style="height: 234px; width: 240.568px;" width="241" /&gt;&lt;/P&gt;&lt;P&gt;Both tables are linked using the &lt;STRONG&gt;Regional&lt;/STRONG&gt; columns.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regional&lt;/STRONG&gt; acts as the &lt;STRONG&gt;Parent&lt;/STRONG&gt; and &lt;STRONG&gt;Area&lt;/STRONG&gt; acts as the &lt;STRONG&gt;Child.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to create a straight table with expression to Sum the Value but based on the value of the children's value when the parent is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any workaround for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user chooses Regional = NATIONAL, then the table should consists of Values of NATIONAL's children (REGIONAL A, REGIONAL B, REGIONAL C, REGIONAL D, REGIONAL E.....REGIONAL L). The expected result is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152103" alt="Main Analysis.PNG" class="jive-image image-3" height="176" src="/legacyfs/online/152103_Main Analysis.PNG" style="height: 175.597px; width: 570px;" width="570" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;The chart above is still hardcoded. So it is still wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. And feel free to ask if there's any question regarding my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find it in the attached QVW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Adam Ginza--&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 07:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216640#M389591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-06T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate only Child value when Parent value is selected.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216641#M389592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the draft work around. Please correct me in case I misunderstood the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 09:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216641#M389592</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-06T09:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate only Child value when Parent value is selected.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216642#M389593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SUM(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; {&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Fact_Flag = {"FCC"}&lt;SPAN style="font-size: 10pt;"&gt; , &lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;REGIONAL = p(AREA)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; FACT = {'Volume in Sticks'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SKU = {'Cigarette'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; YearMonth_Num = {"$(=MAX({&amp;lt;Fact_Flag={'FCC'}&amp;gt;}YearMonth_Num))"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 09:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216642#M389593</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-02-06T09:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate only Child value when Parent value is selected.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216643#M389594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution seems to work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Adam Ginza--&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 11:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-only-Child-value-when-Parent-value-is-selected/m-p/1216643#M389594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-06T11:52:58Z</dc:date>
    </item>
  </channel>
</rss>

