<?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: Conditionally show expression based on week selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703822#M537294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. If i understand correctly , i can say that adding an extra column into the row header of a pivot table is not that straight forward with or without a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using the 'conditional' checkbox on each expression and entering a unique condition on each expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the week data look like ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say your values are:&amp;nbsp; wk 38, wk 39 etc... and the field is [Week]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the conditional expression to show wk 38 qty and wk 38 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;£&amp;nbsp; expressions would be as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substringcount(&amp;nbsp; concat( Distinct&amp;nbsp; [Week],'-') , 'wk 38')&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt; The concat funciton will figure out all the possibilities of [Week]&amp;nbsp; (green and white values) and arrange them in a long list of '-' delimitted values in one string.&amp;nbsp; The substringcount() will check how many times 'wk 38' appears in that list. If the user selected or indirectly selected (white) it will be &amp;gt; 0 and the condition will be true and the expresison will show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to repeat with each expression with a slightly different expression condition .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 13:21:38 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-10-28T13:21:38Z</dc:date>
    <item>
      <title>Conditionally show expression based on week selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703819#M537291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably a simple answer but currently getting nowhere fast...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with the following expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wk 38 qty&lt;/P&gt;&lt;P&gt;wk 38 £&lt;/P&gt;&lt;P&gt;wk 39 qty&lt;/P&gt;&lt;P&gt;wk39 £&lt;/P&gt;&lt;P&gt;wk 40 qty&lt;/P&gt;&lt;P&gt;wk 40 £&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to only show the week's columns when that week has been selected by the user. Porblem being that the user can select multiple weeks at a time ie weeks 38-41, and i need all of those columns to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703819#M537291</guid>
      <dc:creator />
      <dc:date>2014-10-27T16:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally show expression based on week selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703820#M537292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ideally you have Week as a field in the data model, or at least date and use a pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you just need 2 expressions for QTY and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; £.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason this is not possible ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 17:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703820#M537292</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-27T17:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally show expression based on week selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703821#M537293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally I did have the chart like this, but there needs to be a column at the end which is only visible for the last week, not for every week. The options are either only show the last column (closing stock) for the last week conditionally, or only show each week when selected conditionally...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 08:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703821#M537293</guid>
      <dc:creator />
      <dc:date>2014-10-28T08:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally show expression based on week selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703822#M537294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. If i understand correctly , i can say that adding an extra column into the row header of a pivot table is not that straight forward with or without a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using the 'conditional' checkbox on each expression and entering a unique condition on each expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the week data look like ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say your values are:&amp;nbsp; wk 38, wk 39 etc... and the field is [Week]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the conditional expression to show wk 38 qty and wk 38 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;£&amp;nbsp; expressions would be as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substringcount(&amp;nbsp; concat( Distinct&amp;nbsp; [Week],'-') , 'wk 38')&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt; The concat funciton will figure out all the possibilities of [Week]&amp;nbsp; (green and white values) and arrange them in a long list of '-' delimitted values in one string.&amp;nbsp; The substringcount() will check how many times 'wk 38' appears in that list. If the user selected or indirectly selected (white) it will be &amp;gt; 0 and the condition will be true and the expresison will show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to repeat with each expression with a slightly different expression condition .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 13:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-show-expression-based-on-week-selection/m-p/703822#M537294</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-28T13:21:38Z</dc:date>
    </item>
  </channel>
</rss>

