<?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 Re: How do I script this? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410066#M1166697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this with conditional calculations or conditional layouts, depending on what you want your end result to look like. Do you have a sample file of what you are looking to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 18:51:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-12T18:51:31Z</dc:date>
    <item>
      <title>How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410065#M1166696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I have a calendar conrol in my script and a list box in my application showing the Quarter.&amp;nbsp; The values in the list box are 1,2,3, &amp;amp; 4.&amp;nbsp; For a calculated dimension, I want to show some data based on the selection of the quarter in the list box.&amp;nbsp; For example, if the quarter selected = 3, then show X, if the quarter = 4 then show Y, etc.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410065#M1166696</guid>
      <dc:creator />
      <dc:date>2012-10-12T18:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410066#M1166697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this with conditional calculations or conditional layouts, depending on what you want your end result to look like. Do you have a sample file of what you are looking to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410066#M1166697</guid>
      <dc:creator />
      <dc:date>2012-10-12T18:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410067#M1166698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field for calendar quater in the list box is CAL_QTR, in the calculated dimesion of the chart I am looking for something like, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the CAL_QTR selected inthe list box =3, then 'SEP', if the CAL_QTR selected = 1, 'MAR', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just not sure of the script when trying to reference selections made in the list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410067#M1166698</guid>
      <dc:creator />
      <dc:date>2012-10-12T18:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410068#M1166699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use something like this in the conditional layout:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;SubStringCount&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Concat&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;CAL_QTR&lt;/SPAN&gt;, '|'), '1')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410068#M1166699</guid>
      <dc:creator />
      <dc:date>2012-10-12T19:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410069#M1166700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not a fan of calculated dimensions and I wouldn't reference the selections from the list box.&amp;nbsp; I'd build it as data.&amp;nbsp; I assume you have a calendar table with the CAL_QTR field in it.&amp;nbsp; I would add something like CAL_QTR_MONTH with the values you want.&amp;nbsp; Something like this, say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(CAL_QTR,'MAR','JUN','SEP','DEC') as CAL_QTR_MONTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance, it's generally better to do this sort of thing in script than in charts.&amp;nbsp; From a maintenance standpoint, then it's in one place instead of potentially in multiple charts.&amp;nbsp; And as a general rule, I'd rather put complexity in my script than in my charts, even if it's the same level of complexity and there's no duplication.&amp;nbsp; I have a hard time putting my finger on why, though, other than the previous two reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/410069#M1166700</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-12T19:28:30Z</dc:date>
    </item>
  </channel>
</rss>

