<?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 Override field selection in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421492#M156987</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;I was looking for a way to override the selection of any field in a pivot chart with a custom selection based on the values of other fields in the clicked row.&lt;/P&gt;&lt;P&gt;Here is an example to explain my problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="1" cellspacing="0" class="jiveBorder" style="width: 50%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;expr1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="background-color: #008303;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="background-color: #008303;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="background-color: #fd0b01;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The red cell is where the user clicks, it could be the dim4 aswell, or any other dimension or expression. &lt;/P&gt;&lt;P&gt;What i want is to override the selection of the field dim3 and instead select always the fields dim1 and dim2 of the same row.&lt;/P&gt;&lt;P&gt;I need this behavior because i am working on a master - detal report where the detail chart can be viewed only when one dim1 and one dim2 are selected (or are unique values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to accomplish this?&lt;/P&gt;&lt;P&gt;I was thinking of using the OnSelect event of all the fields but i am not sure if i can avoid the selection of the actual clicked field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit : I am on QV Server 11 SR2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 16:53:21 GMT</pubDate>
    <dc:creator>claudio1</dc:creator>
    <dc:date>2013-01-14T16:53:21Z</dc:date>
    <item>
      <title>Override field selection in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421492#M156987</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;I was looking for a way to override the selection of any field in a pivot chart with a custom selection based on the values of other fields in the clicked row.&lt;/P&gt;&lt;P&gt;Here is an example to explain my problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="1" cellspacing="0" class="jiveBorder" style="width: 50%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dim4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;expr1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="background-color: #008303;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="background-color: #008303;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="background-color: #fd0b01;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The red cell is where the user clicks, it could be the dim4 aswell, or any other dimension or expression. &lt;/P&gt;&lt;P&gt;What i want is to override the selection of the field dim3 and instead select always the fields dim1 and dim2 of the same row.&lt;/P&gt;&lt;P&gt;I need this behavior because i am working on a master - detal report where the detail chart can be viewed only when one dim1 and one dim2 are selected (or are unique values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to accomplish this?&lt;/P&gt;&lt;P&gt;I was thinking of using the OnSelect event of all the fields but i am not sure if i can avoid the selection of the actual clicked field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit : I am on QV Server 11 SR2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421492#M156987</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2013-01-14T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Override field selection in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421493#M156988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the Set Analysis :&lt;/P&gt;&lt;P&gt;Let say your expression is :Sum({$&amp;lt;dim3 = &amp;gt;} Sales). it returns the sum of sales but with the selection of dim3 removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 17:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421493#M156988</guid>
      <dc:creator />
      <dc:date>2013-01-14T17:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Override field selection in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421494#M156989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;bennaniomar ha scritto:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the Set Analysis :&lt;/P&gt;&lt;P&gt;Let say your expression is :Sum({$&amp;lt;dim3 = &amp;gt;} Sales). it returns the sum of sales but with the selection of dim3 removed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't think i can use this approach, i need dim1 and dim2 to be selected or to have a possiblecount of 1 because in the detail chart i have this calculation condition : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetPossibleCount(dim1) =1 and GetPossibleCount(dim2) = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my master chart though i can have different combinations of dim1 and dim2 values, in some cases i have several dim2 values for the same dim1 value for example, and i want only one combination of dim1 and dim2 to be selected when the user clicks.&lt;/P&gt;&lt;P&gt;I don't know, maybe i am ignoring a far simpler way to solve this problem... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 17:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421494#M156989</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2013-01-14T17:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Override field selection in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421495#M156990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your databse create a numeric feild based on the weightage of dim2.&lt;/P&gt;&lt;P&gt;then use firstsortedvalue() func. without any aggregate function in your expressions&lt;/P&gt;&lt;P&gt;You should be able to achieve want you want if u have any more queries please do share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gaurav Tyagi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-field-selection-in-pivot-table/m-p/421495#M156990</guid>
      <dc:creator />
      <dc:date>2013-01-15T06:43:19Z</dc:date>
    </item>
  </channel>
</rss>

