<?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: Macro selecting one value in one sheet and activating chart with expressions with second sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919864#M318782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You set with "1" a string-value, try it without the quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 15:40:52 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-07-29T15:40:52Z</dc:date>
    <item>
      <title>Macro selecting one value in one sheet and activating chart with expressions with second sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919863#M318781</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'm new here and have a problem with my macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// First of all, i'm giving the value throw the input box and select other sheet in my application&lt;/P&gt;&lt;P&gt;Sub ChooseValue&lt;/P&gt;&lt;P&gt;Set q = ActiveDocument&lt;/P&gt;&lt;P&gt;q.ClearAll (false)&lt;/P&gt;&lt;P&gt;Set f = q.Fields("Obiekt CO_nr")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;x = inputbox ("Enter product")&lt;/P&gt;&lt;P&gt;f.Select(x)&lt;/P&gt;&lt;P&gt;set s = q.Sheets("Analizator Typów Sprzedaży")&lt;/P&gt;&lt;P&gt;s.Activate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//now i have a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; want to run chart with ID "CH171" with this selected value but chart is activating only when button "Wn" is choosed (please see the image attached) - so only if condition (vWn and vPor_okresow=0) is fullfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWn = -SubStringCount (concat (PrzekrojeID,'|'),1)*(GetSelectedCount(Przekroje)&amp;gt;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPor_okresow=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i activate the chart? How can i enforce chart to show this one specific value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried to use code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vWn")&lt;/P&gt;&lt;P&gt;v.SetContent "1",true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesnt work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your support.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 11:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919863#M318781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-29T11:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro selecting one value in one sheet and activating chart with expressions with second sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919864#M318782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You set with "1" a string-value, try it without the quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 15:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919864#M318782</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-29T15:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro selecting one value in one sheet and activating chart with expressions with second sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919865#M318783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this, problem was... different alternative state on the second sheet and macro couldnt work around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jacek Antek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-selecting-one-value-in-one-sheet-and-activating-chart-with/m-p/919865#M318783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-30T08:15:56Z</dc:date>
    </item>
  </channel>
</rss>

