<?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 How to know which column the user has selected (clicked on)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-know-which-column-the-user-has-selected-clicked-on/m-p/373182#M138762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to know which column the user has selected (clicked on)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table chart with 2 dimensions and 5 expressions and I would like to know how to catch the event click when a user selects one of the monthly columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user will select any cell to narrow the data shown. I need to know which column was selected (it is not showing in the current selections box) to run a macro depending of which month was selected, 3 columns show a distinct count for each month, I focus in the middle ones; see the image showing just the 5 expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="17128" class="jive-image" alt="Pivot.JPG" src="https://community.qlik.com/legacyfs/online/17128_Pivot.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions are.-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;“Monthly Target” Definition: ( Column(2) + Column(3) + Column(4) ) / 3 &lt;/P&gt;&lt;P&gt;Label for column2 ='Past 2 Months ' &amp;amp; varPMonth &amp;amp; ' ‘ &amp;amp; varCYear &lt;/P&gt;&lt;P&gt;Label for column3='Last Month ' &amp;amp; &amp;amp; varLMonth &amp;amp; ' ‘ &amp;amp; varCYear &lt;/P&gt;&lt;P&gt;Label for column4='Current Month ' &amp;amp; &amp;amp; varCMonth &amp;amp; ' ‘ &amp;amp; varCYear &lt;/P&gt;&lt;P&gt;“Daily Trend - Past 3 months” definition: ( Column(2) + Column(3) + Column(4) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the column names are calculated and not coming from a field so I cannot use field event trigger there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content for every monthly cell is calculated as well.- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For past 2 months: if(Row='1' count({}&amp;nbsp; Distinct&amp;nbsp; Number), &lt;/P&gt;&lt;P&gt;For last month: if(Row='1'&amp;nbsp; count({}&amp;nbsp; Distinct&amp;nbsp; Number) &lt;/P&gt;&lt;P&gt;For current month: if(Row='1'&amp;nbsp; count({}&amp;nbsp; Distinct&amp;nbsp; Number) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m using this variables.- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let varCYear = Year(Today()); &lt;/P&gt;&lt;P&gt;Let varPMonth = Month(Today()-65); &lt;/P&gt;&lt;P&gt;Let varLMonth = Month(Today()-35); &lt;/P&gt;&lt;P&gt;Let varCMonth = Month(Today()); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I want to catch the month that user selected in (current, last or past columns). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a row is selected in that chart I can trigger a macro (using VBScript) to catch some fields strings like “status” and so on (horizontally but not vertically for field “month”) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 18:28:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-28T18:28:22Z</dc:date>
    <item>
      <title>How to know which column the user has selected (clicked on)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-know-which-column-the-user-has-selected-clicked-on/m-p/373182#M138762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to know which column the user has selected (clicked on)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table chart with 2 dimensions and 5 expressions and I would like to know how to catch the event click when a user selects one of the monthly columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user will select any cell to narrow the data shown. I need to know which column was selected (it is not showing in the current selections box) to run a macro depending of which month was selected, 3 columns show a distinct count for each month, I focus in the middle ones; see the image showing just the 5 expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="17128" class="jive-image" alt="Pivot.JPG" src="https://community.qlik.com/legacyfs/online/17128_Pivot.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions are.-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;“Monthly Target” Definition: ( Column(2) + Column(3) + Column(4) ) / 3 &lt;/P&gt;&lt;P&gt;Label for column2 ='Past 2 Months ' &amp;amp; varPMonth &amp;amp; ' ‘ &amp;amp; varCYear &lt;/P&gt;&lt;P&gt;Label for column3='Last Month ' &amp;amp; &amp;amp; varLMonth &amp;amp; ' ‘ &amp;amp; varCYear &lt;/P&gt;&lt;P&gt;Label for column4='Current Month ' &amp;amp; &amp;amp; varCMonth &amp;amp; ' ‘ &amp;amp; varCYear &lt;/P&gt;&lt;P&gt;“Daily Trend - Past 3 months” definition: ( Column(2) + Column(3) + Column(4) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the column names are calculated and not coming from a field so I cannot use field event trigger there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content for every monthly cell is calculated as well.- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For past 2 months: if(Row='1' count({}&amp;nbsp; Distinct&amp;nbsp; Number), &lt;/P&gt;&lt;P&gt;For last month: if(Row='1'&amp;nbsp; count({}&amp;nbsp; Distinct&amp;nbsp; Number) &lt;/P&gt;&lt;P&gt;For current month: if(Row='1'&amp;nbsp; count({}&amp;nbsp; Distinct&amp;nbsp; Number) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m using this variables.- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let varCYear = Year(Today()); &lt;/P&gt;&lt;P&gt;Let varPMonth = Month(Today()-65); &lt;/P&gt;&lt;P&gt;Let varLMonth = Month(Today()-35); &lt;/P&gt;&lt;P&gt;Let varCMonth = Month(Today()); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I want to catch the month that user selected in (current, last or past columns). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a row is selected in that chart I can trigger a macro (using VBScript) to catch some fields strings like “status” and so on (horizontally but not vertically for field “month”) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 18:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-know-which-column-the-user-has-selected-clicked-on/m-p/373182#M138762</guid>
      <dc:creator />
      <dc:date>2012-06-28T18:28:22Z</dc:date>
    </item>
  </channel>
</rss>

