<?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: VARIABLE WITH DYNAMIC NAME in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124668#M602729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the idea is that the dynamic variable name according to the value of the dimension product&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213500_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and P1 and P2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P1=sum({&amp;lt;CATEGORIE={'C1'},sales={'&amp;lt;700'}&amp;gt;}1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P2=sum({&amp;lt;CATEGORIE={'C5'},sales={'&amp;lt;700 &amp;gt;200'}&amp;gt;}1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2018 14:48:14 GMT</pubDate>
    <dc:creator>souadouert</dc:creator>
    <dc:date>2018-09-13T14:48:14Z</dc:date>
    <item>
      <title>VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124666#M602727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have this table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 523px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="78"&gt;ID_SALER&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="78"&gt;PRODUCT&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="103"&gt;CATEGORIE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="83"&gt;sales&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="181"&gt;CLIENT_PRODUCT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c12&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;502&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;503&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have variables $(P1) ET $( P2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P1=sum({&amp;lt;CATEGORIE={'C1'},sales={'&amp;lt;700'}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;P2=sum({&amp;lt;CATEGORIE={'C5'},sales={'&amp;lt;700 &amp;gt;200'}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO I need to create simple table , in dimension ID_saler and Product&lt;/P&gt;&lt;P&gt;and in expression i need to add the variable with corresponding to value dimensions --&amp;gt; =$(PRODUCT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 330px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="80"&gt;ID_SALER&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;PRODUCT&lt;/TD&gt;&lt;TD width="90"&gt;EXPRESSION&lt;/TD&gt;&lt;TD class="xl68" width="80"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD&gt;$(PRODUCT)&lt;/TD&gt;&lt;TD class="xl68"&gt;$(P1)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD&gt;$(PRODUCT)&lt;/TD&gt;&lt;TD class="xl68"&gt;$(P2)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD&gt;$(PRODUCT)&lt;/TD&gt;&lt;TD class="xl68"&gt;$(P1)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;P2&lt;/TD&gt;&lt;TD&gt;$(PRODUCT)&lt;/TD&gt;&lt;TD class="xl68"&gt;$(P2)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but iwhen i excuted , the expression shows the text expression&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CATEGORIE={'C1'},sales={'&amp;lt;700'}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CATEGORIE={'C5'},sales={'&amp;lt;700 &amp;gt;200'}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;So i need to force the interpretation&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213490_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124666#M602727</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-09-13T14:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124667#M602728</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;what is the content of the variable $(PRODUCT) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are using two variables in your expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124667#M602728</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-13T14:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124668#M602729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the idea is that the dynamic variable name according to the value of the dimension product&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213500_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and P1 and P2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P1=sum({&amp;lt;CATEGORIE={'C1'},sales={'&amp;lt;700'}&amp;gt;}1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P2=sum({&amp;lt;CATEGORIE={'C5'},sales={'&amp;lt;700 &amp;gt;200'}&amp;gt;}1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124668#M602729</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-09-13T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124669#M602730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a simple IF won't do the trick ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(PRODUCT='P1', $(P1), $(P2))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124669#M602730</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-13T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124670#M602731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;youssef I do not have the list of products,I must have as much product as dynamically variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124670#M602731</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-09-13T14:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124671#M602732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a look at this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/193729" title="https://community.qlikview.com/thread/193729"&gt;Dynamic Variable Name in Chart | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124671#M602732</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-13T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE WITH DYNAMIC NAME</title>
      <link>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124672#M602733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that $ sign expansions are on a chart level and do not work with row by row dimension values. You probably need to use a pick match construction like =Pick(Match(Product,'P1','P2'),$(P1),$(P2)). To make this variable have a look at (and the links in there)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/766293"&gt;Re: Using Pick and Match for multiple calculations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VARIABLE-WITH-DYNAMIC-NAME/m-p/124672#M602733</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-09-13T15:11:03Z</dc:date>
    </item>
  </channel>
</rss>

