<?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 Help with &amp;quot;Conditional Show&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144377#M505770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetFieldSelections(Year) like Year(Today())&lt;/P&gt;&lt;P&gt;GetFieldSelections(Year) like 2008&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 23:29:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-18T23:29:43Z</dc:date>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144372#M505765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Have a graph that I only want displayed if a certain year is selected. I have this formula in the Show Conditional formula box on the Layout tab&lt;/P&gt;&lt;P&gt;Year(Date) = Year(Today())&lt;/P&gt;&lt;P&gt;This works if only one year (the current year) is selected, but if I select the current year and last year. Neither of the graphs show up.&lt;/P&gt;&lt;P&gt;What can I do to the formula to display the graph if at least one of the selected values for Year is the current year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 21:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144372#M505765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-18T21:09:59Z</dc:date>
    </item>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144373#M505766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;you can try to use the system function like GetFieldSelections.&lt;/P&gt;&lt;P&gt;GetFieldSelections(Date) will give you all selected Date.&lt;/P&gt;&lt;P&gt;you may then try to find the if the year of the maximum date is this year.&lt;/P&gt;&lt;P&gt;The formula sould look at the following:&lt;/P&gt;&lt;P&gt;Year(max(GetFieldSelections(Date) ))=year(today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 21:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144373#M505766</guid>
      <dc:creator />
      <dc:date>2009-05-18T21:19:57Z</dc:date>
    </item>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144374#M505767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if there is an easier way, but this can be accomplished using a macro.&lt;/P&gt;&lt;P&gt;Set an On Select macro for the Year field. Use something like this:&lt;/P&gt;&lt;P&gt;SUB Chooser&lt;BR /&gt; set Sello = ActiveDocument.Fields("Year").GetSelectedValues&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.Variables("vGoodYear").SetContent 0, true&lt;BR /&gt;&lt;BR /&gt; for i = 0 to Sello.Count - 1&lt;BR /&gt; if Sello.Item(i).text = "2009" then&lt;BR /&gt; ActiveDocument.Variables("vGoodYear").SetContent 1, true&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt;END SUB&lt;/P&gt;&lt;P&gt;Then you can use the variable in the Show expression. This macro is a simplified version of what you would need. You could set the conditional based on the current year, which looks like what you are trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 21:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144374#M505767</guid>
      <dc:creator />
      <dc:date>2009-05-18T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144375#M505768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;I'm going to elaborate a little more on my problem.&lt;/P&gt;&lt;P&gt;I have 3 graphs, one graph I want displayed if one of the selected years is 2009, one for 2008 and the other for 2007.&lt;/P&gt;&lt;P&gt;@npeyroux, the Max() causes your formula to break when multiple years are selected.&lt;/P&gt;&lt;P&gt;Also max is out of the question because 2008 falls in between 2009 and 2007 if all three years were selected.&lt;/P&gt;&lt;P&gt;A macro shouldn't be needed, If I can filter it and have it see the 2008 out of a list within an if then else statement, the same should be possible within an expression. I'd also like to stray away from macros for performance and managability.&lt;/P&gt;&lt;P&gt;GetFieldSelections() seems to be the best bet, but for some reason Max() is not working together with it. Any other suggestions?&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 23:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144375#M505768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-18T23:09:33Z</dc:date>
    </item>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144376#M505769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick idea.&lt;/P&gt;&lt;P&gt;I don't know how but may be you can use GetFieldSelections and then a string function to parse the different value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 23:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144376#M505769</guid>
      <dc:creator />
      <dc:date>2009-05-18T23:16:41Z</dc:date>
    </item>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144377#M505770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetFieldSelections(Year) like Year(Today())&lt;/P&gt;&lt;P&gt;GetFieldSelections(Year) like 2008&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 23:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144377#M505770</guid>
      <dc:creator />
      <dc:date>2009-05-18T23:29:43Z</dc:date>
    </item>
    <item>
      <title>Help with "Conditional Show"</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144378#M505771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SubstringCount(GetFieldSelections(Year),Year(Today()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of the input, The solution above works perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 23:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-quot-Conditional-Show-quot/m-p/144378#M505771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-18T23:42:43Z</dc:date>
    </item>
  </channel>
</rss>

