<?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: Using ValueList in Conditional Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899218#M1011304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was probably bad at explaining it. This is what I'm trying to achieve:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86041_test.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The Q1, Q2 etc. label names are updated based on selection box selection, so each of them has a different expression. When I use the first suggestion you provided, both Q1 and Q2 label names show up under Actual Sales and under Expected Sales. I only want Q1 under Actuals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 20:37:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-08T20:37:17Z</dc:date>
    <item>
      <title>Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899212#M1011298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="test.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85945_test.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I've created the following table where the names are a dimension, quarter 1 and quarter 2 are individual expressions (I kept them as expressions since they have different formulas and the expression labels are dynamic that get updated based on selections). The 'Actual Sales' and 'Expected Sales' are a valuelist dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, Actual Sales would only have quarter 1 and expected sales would have quarter 2 and other additional quarters. Since the valuelist is a dimension, all expressions show up under it. I want to add a condition for Quarter 1 along the lines of :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Valuelist ('Actual Sales', 'Expected Sales' = 'Actual Sales')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that only quarter 1 shows up under Actual Sales and only Quarter 2 shows up under Expected Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its my first question so Im not sure if I covered everything. Let me know if you need further details to answer it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 16:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899212#M1011298</guid>
      <dc:creator />
      <dc:date>2015-05-07T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899213#M1011299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reference the synthethic dimension by repeating it in your expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Valuelist ('Actual Sales', 'Expected Sales' )= 'Actual Sales',YourExprforQ1 , &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourExprforQ2&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 16:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899213#M1011299</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-07T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899214#M1011300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Piet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do that, I lose out on the labels Quarter 1 and Quarter 2, which I need to keep. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 19:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899214#M1011300</guid>
      <dc:creator />
      <dc:date>2015-05-07T19:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899215#M1011301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the label of the above expression you can do the same like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Valuelist ('Actual Sales', 'Expected Sales' )= 'Actual Sales','Q1','Q2')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or do you want both labels for actual and expected? Then you can use two expressions like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Valuelist ('Actual Sales', 'Expected Sales' )= 'Actual Sales',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourExprforQ1,null())&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Valuelist ('Actual Sales', 'Expected Sales' )= 'Actual Sales',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourExprforQ2,null())&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 09:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899215#M1011301</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-08T09:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899216#M1011302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show both labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the second suggestion and it displays both Quarter 1 and Quarter 2 under each of Actual Sales and Expected Sales. Is there a way to hide these null() columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 15:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899216#M1011302</guid>
      <dc:creator />
      <dc:date>2015-05-08T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899217#M1011303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm confused, my first suggestion did that, but then you said you needed to keep both labels. You can either have the one label for each or both labels with null values for Q1 or Q2. You can replace what it displays for null values in the presentation tab, but otherwise there are no options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 19:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899217#M1011303</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-08T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899218#M1011304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was probably bad at explaining it. This is what I'm trying to achieve:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86041_test.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The Q1, Q2 etc. label names are updated based on selection box selection, so each of them has a different expression. When I use the first suggestion you provided, both Q1 and Q2 label names show up under Actual Sales and under Expected Sales. I only want Q1 under Actuals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899218#M1011304</guid>
      <dc:creator />
      <dc:date>2015-05-08T20:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using ValueList in Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899219#M1011305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't have multiple expressions for this scenario. The quarter needs to be a (dynamic)dimension, the expression a single expression. Depending on how this will change when the user select things, this single expression can become a very nasty multiple nested if statement. The other option is to use the associative capabilities of the qv datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post, which is very similar to what you are trying to do&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/766440"&gt;Extra header in Pivot&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 10:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-ValueList-in-Conditional-Expression/m-p/899219#M1011305</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-09T10:45:24Z</dc:date>
    </item>
  </channel>
</rss>

