<?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 Set Expression Conditional Show/Hide in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339751#M125416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try to set the condition on the list box:&lt;/P&gt;&lt;P&gt;=max(FieldA)&amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;But you could create a variable and set it to calculate the max(FieldA) and then check the value of the variable in your macro.&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;v_MaxTest&amp;nbsp;&amp;nbsp; set to =max(FieldA)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;vb code:&lt;BR /&gt;set v = ActiveDocument.Variables("v_MaxTest")&lt;BR /&gt;msgbox(v.GetContent.String)&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 19:10:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-07T19:10:35Z</dc:date>
    <item>
      <title>Set Expression Conditional Show/Hide in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339750#M125415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that builds a couple of charts dynamically.&amp;nbsp; I have a table that tells it which dimensions and expressions to display in the chart based on a selection from a list box.&amp;nbsp; But, I have one set of expressions for one of the list box options needs to display only when the max of the values in not 0.&amp;nbsp; I have been trying to find vb script that can either find the max of the value or set the presention condition expression text.&amp;nbsp; But, I haven't had any luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to do either of these? Or, does anyone have any other suggestions?&amp;nbsp; I am at a complete loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 18:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339750#M125415</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2012-05-07T18:38:24Z</dc:date>
    </item>
    <item>
      <title>Set Expression Conditional Show/Hide in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339751#M125416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try to set the condition on the list box:&lt;/P&gt;&lt;P&gt;=max(FieldA)&amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;But you could create a variable and set it to calculate the max(FieldA) and then check the value of the variable in your macro.&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;v_MaxTest&amp;nbsp;&amp;nbsp; set to =max(FieldA)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;vb code:&lt;BR /&gt;set v = ActiveDocument.Variables("v_MaxTest")&lt;BR /&gt;msgbox(v.GetContent.String)&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 19:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339751#M125416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-07T19:10:35Z</dc:date>
    </item>
    <item>
      <title>Set Expression Conditional Show/Hide in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339752#M125417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This is great! But, I have about 25 expressions that I need to test.&amp;nbsp; Is there a way to set the variable in the vb script?&amp;nbsp; Or can that only be done in QV variable settings? I am already looping through a list of expressions, so it would be exceptionally nice to be able to add this test in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 19:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339752#M125417</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2012-05-07T19:26:55Z</dc:date>
    </item>
    <item>
      <title>Set Expression Conditional Show/Hide in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339753#M125418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. You can set a variable using the following code:&lt;BR /&gt;set v = ActiveDocument.Variables("v_MaxTestB")&lt;BR /&gt;v.SetContent "=max(b)",true&lt;/P&gt;&lt;P&gt;--- end of code&lt;BR /&gt;Do you know about the APIguide.qvw? You can find this on the download site. Search for "APIguide"&lt;BR /&gt;I do not see a version 11 there yet, but I think most of the code will still work fine. This has examples for whatever you need to do. Of course, if you can avoid using macros, that would be best. But sometimes you have no choice.&lt;BR /&gt;-Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 20:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339753#M125418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-07T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Set Expression Conditional Show/Hide in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339754#M125419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I found the app and will definitely check it out.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 20:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Conditional-Show-Hide-in-Macro/m-p/339754#M125419</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2012-05-07T20:25:17Z</dc:date>
    </item>
  </channel>
</rss>

