<?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 Can't select chart expression values - move to script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808412#M1028792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qlikview chart (see attached) that summarises the total number of events undertaken by members - including zero. Unfortunately, if I try and filter, say, all the members who have done zero events in 2015 by clicking one of the zero's, the filter applied is for the single member record - not all zero records. I guess this is to do with the use of expressions in the chart. Would it be possible to add the totals to the member records in the main script, so they can easily be selected from a chart or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Feb 2015 16:04:45 GMT</pubDate>
    <dc:creator>jmclaren</dc:creator>
    <dc:date>2015-02-15T16:04:45Z</dc:date>
    <item>
      <title>Can't select chart expression values - move to script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808412#M1028792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qlikview chart (see attached) that summarises the total number of events undertaken by members - including zero. Unfortunately, if I try and filter, say, all the members who have done zero events in 2015 by clicking one of the zero's, the filter applied is for the single member record - not all zero records. I guess this is to do with the use of expressions in the chart. Would it be possible to add the totals to the member records in the main script, so they can easily be selected from a chart or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 16:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808412#M1028792</guid>
      <dc:creator>jmclaren</dc:creator>
      <dc:date>2015-02-15T16:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't select chart expression values - move to script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808413#M1028793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about adding Searchable flag to the expression (arrow) and search (rectangle) for 0?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78175_1.jpg" style="height: 388px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 17:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808413#M1028793</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-15T17:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't select chart expression values - move to script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808414#M1028794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I can see that works...I would ideally like to leave users with one method for selection though. I intend producing bar charts etc with this data so would refer if the users could simply drag over the number of events to make their selections. Isn't it possible to calculate these four summary values and write them back as new dimensions to the member records all from within the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 08:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808414#M1028794</guid>
      <dc:creator>jmclaren</dc:creator>
      <dc:date>2015-02-16T08:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't select chart expression values - move to script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808415#M1028795</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;Just hoping someone can suggest how I can summarise the events per member and add them back against the member records in the script. I imagine it should be fairly straight forward but being a new user I'm not sure how to do it... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 22:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808415#M1028795</guid>
      <dc:creator>jmclaren</dc:creator>
      <dc:date>2015-02-18T22:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't select chart expression values - move to script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808416#M1028796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached example qvw shows one way to create the Dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIrst, create the "Total Events" field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Total Events &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (Members) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MemberID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ,count(EventDate) as [Total Events]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident Events&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY MemberID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you also need a field for each EventYear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create "Events in YYYY" fields&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;YearSummary:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Generic LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MemberID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ,'Events in ' &amp;amp; EventYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ,count(EventDate) as EventCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident Events&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY MemberID ,EventYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Generic statement will create a separate table for each year, which is ok because they are linked. But if you want merge the "Events in YYYY' fields into the Members table, add this bit of script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR i = NoOfTables() to 1 STEP -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LET vTable = TableName($(i));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IF '$(vTable)' LIKE 'YearSummary*' THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LEFT JOIN (Members) LOAD * RESIDENT [$(vTable)];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; DROP TABLE [$(vTable)];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 00:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808416#M1028796</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-19T00:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't select chart expression values - move to script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808417#M1028797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works really well…and I can even understand how it works ☺. A key part of this requirement is to analyse low or non-participation and with this any years with no events appear as null – is there some way that the last script, which adds year totals back to the ‘Members’ table, can check for nulls and substitute ‘0’ instead? I've done some research and have tried using 'NULLASVALUE' but it's resulted in duplicate rows for thos items with nulls (see attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 11:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-select-chart-expression-values-move-to-script/m-p/808417#M1028797</guid>
      <dc:creator>jmclaren</dc:creator>
      <dc:date>2015-02-19T11:29:39Z</dc:date>
    </item>
  </channel>
</rss>

