<?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: Show an expression based on a selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-an-expression-based-on-a-selection/m-p/69393#M786561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = '1st Half' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))=0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;however I would suggest you write a value for full year then use Match(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;/SPAN&gt;),'1st Half' ,'Full Year') &amp;amp; Match(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;/SPAN&gt;),'2nd Half' ,'Full Year') respectively&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;You could also write the interval values into a calendar to accomplish the same then you could use one expression and the calendar month as a dimension in your chart and filter on the field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH Jim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 17:53:20 GMT</pubDate>
    <dc:creator>jpitfield</dc:creator>
    <dc:date>2018-02-22T17:53:20Z</dc:date>
    <item>
      <title>Show an expression based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Show-an-expression-based-on-a-selection/m-p/69392#M786560</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 have expressions in a chart table and want it to show based on a selection.&amp;nbsp; I'm just struggling with the syntax in the Conditional Window.&amp;nbsp; &lt;/P&gt;&lt;P&gt;So I have an expression for each of the months.&amp;nbsp; They go up to Dec. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Month = {'Jan'}&amp;gt;}TotalAmount) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Month = {'Feb'}&amp;gt;}TotalAmount) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt;"&gt;Month = {'Dec'}&amp;gt;}TotalAmount) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have a List box called Year Spilt. The Values are "1st Half" and "2nd Half" .&amp;nbsp; "1st Half represents months from Jan to Jun and "2nd Half" from Jul to Dec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So If I select '1st Half", I want only the expressions&amp;nbsp; that contains Month = Jan up to Jun&amp;nbsp; should display. And if I selection "2nd Half", then the expressions containing Month = Jul up to Dec should display.&amp;nbsp; If nothing is selected, then all expressions should display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How do I do get the correct syntax in the Conditional window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Nayan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-an-expression-based-on-a-selection/m-p/69392#M786560</guid>
      <dc:creator>nayanqlik</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show an expression based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Show-an-expression-based-on-a-selection/m-p/69393#M786561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = '1st Half' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))=0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;however I would suggest you write a value for full year then use Match(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;/SPAN&gt;),'1st Half' ,'Full Year') &amp;amp; Match(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year Split]&lt;/SPAN&gt;&lt;/SPAN&gt;),'2nd Half' ,'Full Year') respectively&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;You could also write the interval values into a calendar to accomplish the same then you could use one expression and the calendar month as a dimension in your chart and filter on the field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH Jim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 17:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-an-expression-based-on-a-selection/m-p/69393#M786561</guid>
      <dc:creator>jpitfield</dc:creator>
      <dc:date>2018-02-22T17:53:20Z</dc:date>
    </item>
  </channel>
</rss>

