<?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: Dynamically changing Dimension values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560833#M598302</link>
    <description>How would I use a script variable in a chart set analysis and label?</description>
    <pubDate>Mon, 25 Mar 2019 14:31:31 GMT</pubDate>
    <dc:creator>Abhishek1</dc:creator>
    <dc:date>2019-03-25T14:31:31Z</dc:date>
    <item>
      <title>Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560814#M598298</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field with values suppose as following:&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;x&lt;/P&gt;&lt;P&gt;y&lt;/P&gt;&lt;P&gt;z&lt;/P&gt;&lt;P&gt;I have used this values to create an expression where these field values are used for adding the condition like:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Field ={'x'}&amp;gt;}Sales)&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the expression label is 'x' in this case and so on for other field values used in separate equation in the chart.&lt;/P&gt;&lt;P&gt;Now the client is stating that the field values will change monthly. So I have to find a solution to dynamically replace the old field values with the new field values in the set analysis and in the expression label dynamically as the field values change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose there are now new field values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;so now the set analysis should be&amp;nbsp;=sum({&amp;lt;Field ={'A'}&amp;gt;}Sales) and expression label Should be A.&lt;/P&gt;&lt;P&gt;Can anyone please help me with this?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560814#M598298</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2019-03-25T13:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560817#M598299</link>
      <description>&lt;P&gt;Try using a variable in the set analysis e.g.&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;$(vSetVariable)&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the variable you dynamically define&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Field ={'x'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560817#M598299</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-25T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560818#M598300</link>
      <description>&lt;P&gt;Hi Dilip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 5 values in the field and each is used in a different expression and label. How do I use&amp;nbsp; a variable here?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560818#M598300</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2019-03-25T14:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560824#M598301</link>
      <description>Not quite sure what you mean.&lt;BR /&gt;assuming you are saying there are always 5 values in the field . and you have 5 different expressions and labels&lt;BR /&gt;Why not create the dynamic variable in script using peek function or something similar for each&lt;BR /&gt;e.g. vExpression1 = 'Field=' &amp;amp; chr(39)&amp;amp;Peek('Field',0,'TableName') &amp;amp; chr(39)&lt;BR /&gt;&lt;BR /&gt;(rough code)</description>
      <pubDate>Mon, 25 Mar 2019 14:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560824#M598301</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-25T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560833#M598302</link>
      <description>How would I use a script variable in a chart set analysis and label?</description>
      <pubDate>Mon, 25 Mar 2019 14:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560833#M598302</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2019-03-25T14:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560839#M598303</link>
      <description>Same as any other variable. Variable defined in script is accessible on UI side</description>
      <pubDate>Mon, 25 Mar 2019 14:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560839#M598303</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-25T14:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560876#M598304</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In your expression Field equal A, but you also have B and C. What is the logic of this choise? It's based on user actions in UI or it's predefined in script?&lt;BR /&gt;&lt;BR /&gt;If based on user actions in UI, you should create variable that will contains data from field column, something like this vFieldSelection:&lt;BR /&gt;=GetFieldSelection(Field)&lt;BR /&gt;and then your expression will be sum({&amp;lt;Field = {"$(vFieldSelection)"}&amp;gt;}Value)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vitalii</description>
      <pubDate>Mon, 25 Mar 2019 16:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1560876#M598304</guid>
      <dc:creator>vitaliichupryna</dc:creator>
      <dc:date>2019-03-25T16:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing Dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1561079#M598305</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;All the expressions for A,B,C should work simultaneously and separately in the same chart. So I dont think getfield selection will work.</description>
      <pubDate>Tue, 26 Mar 2019 05:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-Dimension-values/m-p/1561079#M598305</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2019-03-26T05:33:44Z</dc:date>
    </item>
  </channel>
</rss>

