<?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: Loading variables to a straight table based on dimension and expression fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597149#M221128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use any inline table also like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Dim_Name&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;Volume&lt;/P&gt;&lt;P&gt;Margin&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in chart use Dimenion Dim_Name and in expression variable followed by Dimension name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 12:13:00 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-04-03T12:13:00Z</dc:date>
    <item>
      <title>Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597145#M221124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, wondering if anyone has some smart ideas about how to solve this &lt;/P&gt;&lt;P&gt;Is it possible to define a variable based on its position in a table, then return the value for that variable?&lt;/P&gt;&lt;P&gt;See the example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Dim&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Sales&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varSales1)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varSales2)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varSales3)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Volume&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varVolume1)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varVolume2)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varVolume3)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Margin&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varMargin1)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varMargin2)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$(varMargin3)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the variables contain Set Analysis, and I can get each one individually to display in a text box, then build a "table" structure by moving the boxes around.&lt;/P&gt;&lt;P&gt;But it would be cleaner if this was one straight table, easier to export, etc.&lt;/P&gt;&lt;P&gt;What I would like to do is set an expression that essentially "concatenates" the column and row names into a variable name?&lt;/P&gt;&lt;P&gt;E.g. Column = (calculation) "1", Dimesnion = "Sales", Variable = $(varSales1)&lt;/P&gt;&lt;P&gt;Then the result displayed is the result calculation of the variable e.g. "=$(varSales1)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas if this is possible?&lt;/P&gt;&lt;P&gt;Alternatively I could create this as a "Flat Table" in the load script and make the calculations there, but doing it this way would be much cooler!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597145#M221124</guid>
      <dc:creator />
      <dc:date>2014-04-03T11:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597146#M221125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a straight table for this&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dimension write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Sales' and in expression followed by variables like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varSales1)&lt;/SPAN&gt; ,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varSales2)&lt;/SPAN&gt; ,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varSales3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;same for&lt;/P&gt;&lt;P&gt;'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Volume&lt;/SPAN&gt;' and in expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varVolume1)&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varVolume2)&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varVolume3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;same for &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'Margin' and expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varMargin1)&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varMargin2),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(varMargin3)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means create three straight tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Update:- And remove its caption and title from the chart and arrange tables in sequence Sales,Volume,Margin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597146#M221125</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-03T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597147#M221126</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;You can do this. I am assuming that 1, 2, 3 along the top are 3 expressions. Define expression 1 like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(Match(Dim, 'Sales', 'Volume', 'Margin'), $(varSales1), $(varVolume1), $(varMargin1)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will apply the correct expression. The variables must contain legal QV code, without a preceding = sign, so that they will be expanded into the Pick(Match()) expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same thing with expressions 2 and 3, just change the index number in the variable names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597147#M221126</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-03T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597148#M221127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to that post: rather than Pick(Match(....)), you can use Pick(RowNo(), ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have many values of Dim, so the pick match (or Pick(RowNo()..) expression gets very long and awkward to manually capture and maintain, you can use the load script to construct the Pick() expression. I have done that with about 50 sub-expressions (read from a spreadsheet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But be warned that this can be a performance killer - in my experience there is quite a calculation overhead with large Pick(Match()) expressions, so you would need to test&amp;nbsp; the performance of your application. This should not be a problem with less than 10 expressions, although that depends on the complexity of the expressions in the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597148#M221127</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-03T12:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597149#M221128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use any inline table also like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Dim_Name&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;Volume&lt;/P&gt;&lt;P&gt;Margin&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in chart use Dimenion Dim_Name and in expression variable followed by Dimension name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597149#M221128</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-03T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597150#M221129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pase fnd the attached on how to acheive your rquest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597150#M221129</guid>
      <dc:creator>telepuzik</dc:creator>
      <dc:date>2014-04-03T12:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597151#M221130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, Works like a dream.&lt;/P&gt;&lt;P&gt;Eventually the list will get quite long which might make the code unmanageable, but looks good so far!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597151#M221130</guid>
      <dc:creator />
      <dc:date>2014-04-03T12:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables to a straight table based on dimension and expression fields</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597152#M221131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;This does what I wanted to do.&lt;/P&gt;&lt;P&gt;I think the "Pick" function suggested by Jonathan is cleaner than nested 'if' statements and probably better for performance as well though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-to-a-straight-table-based-on-dimension-and/m-p/597152#M221131</guid>
      <dc:creator />
      <dc:date>2014-04-03T12:24:27Z</dc:date>
    </item>
  </channel>
</rss>

