<?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 Variable Based Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Based-Expression-Help/m-p/419685#M156146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&amp;nbsp; Im using the following expression to limit what is shown in a pivot chart (which is working) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(vSelection = 'Type 1' or vSelection = 'Type 2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(dashboard=vSelection,If(single_value='N',num((sum(val1)/sum(val2)),'#,###.00%'), num(sum(val3/2),'#,###.00'))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(category=vSelection,If(single_value='N',num((sum(val1)/sum(val2)),'#,###.00%'), num(sum(val3/2),'#,###.00'))))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Value' can either be a Sum or a Percentage Rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try and use this same expression in a Line Chart not all the Dimensions are shown - only a selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use this expression in the line chart : If(single_value='N',num((sum(val1)/sum(val2)),'#,###.00%'), num(sum(val3/2),'#,###.00')) , everthing is shown.&amp;nbsp; But I need to limit the dimensions dependent on the the value of vSelection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help is appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fiorano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 13:13:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-14T13:13:27Z</dc:date>
    <item>
      <title>Variable Based Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Based-Expression-Help/m-p/419685#M156146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&amp;nbsp; Im using the following expression to limit what is shown in a pivot chart (which is working) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(vSelection = 'Type 1' or vSelection = 'Type 2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(dashboard=vSelection,If(single_value='N',num((sum(val1)/sum(val2)),'#,###.00%'), num(sum(val3/2),'#,###.00'))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(category=vSelection,If(single_value='N',num((sum(val1)/sum(val2)),'#,###.00%'), num(sum(val3/2),'#,###.00'))))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Value' can either be a Sum or a Percentage Rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try and use this same expression in a Line Chart not all the Dimensions are shown - only a selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use this expression in the line chart : If(single_value='N',num((sum(val1)/sum(val2)),'#,###.00%'), num(sum(val3/2),'#,###.00')) , everthing is shown.&amp;nbsp; But I need to limit the dimensions dependent on the the value of vSelection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help is appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fiorano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 13:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Based-Expression-Help/m-p/419685#M156146</guid>
      <dc:creator />
      <dc:date>2013-01-14T13:13:27Z</dc:date>
    </item>
  </channel>
</rss>

