<?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: How to execute variable expansion on inline table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419179#M155946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ~ (or another character of your choice) instead of $ in the expression you want to load, then use Replace(Expression,'~','$') to fix the expressions so the $ is put in the right places in the expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 16:37:21 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-12-11T16:37:21Z</dc:date>
    <item>
      <title>How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419174#M155941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use ($) to expand our variables in our objects.&amp;nbsp; I'm trying to do the same thing but with a field value that I created in an inline table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a cool trick I use for sorting pivot tables, I usually use buttons with variables and then use the $(variable) expansion in the sort expression but&lt;/P&gt;&lt;P&gt;in this case I have so many it would look nicer if I allowed the users to select using a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example this simple inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 8pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;A,B&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValueA, =sum({$&amp;lt;[SourceName] = {'CurrentView'}&amp;gt;}[OutlookUnits])]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want the value for B (&lt;/SPAN&gt;=sum({$&amp;lt;[SourceName] = {'CurrentView'}&amp;gt;}[OutlookUnits]) to be executed when "ValueA" is selected.&amp;nbsp; I usually use variables for this in my pivot table and dollar sign expansion, but $(B) doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&amp;nbsp; Thanks for anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 22:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419174#M155941</guid>
      <dc:creator />
      <dc:date>2012-12-07T22:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419175#M155942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try $(=B). See attached example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 07:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419175#M155942</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-08T07:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419176#M155943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert - You have been a life saver and I very much appreciate the help you have been providing.&amp;nbsp; I knew it was something simple like that!&amp;nbsp; Please see attachment though, this ties to another post you commented on last week.&amp;nbsp; Let's say in your inline table you want to add a more complex set expression like I did called "SumHELP" as the Label.&amp;nbsp; You see how I have used a ',' in my expression.&amp;nbsp; I have tried replacing with chr(44) and using double quotes but still can't get the "Expression" record to include the comma.&amp;nbsp; Qlikview thinks the comma is the end of the line and it just truncates the rest of my set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a fancy work-around for that?&amp;nbsp; Thanks again for everything&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 17:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419176#M155943</guid>
      <dc:creator />
      <dc:date>2012-12-10T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419177#M155944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a different separator for the inline. Like '@' below, or tabs with (delimiter is '\t').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyExpressions:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Label@ Expression&lt;/P&gt;&lt;P&gt;Sum2008@ sum({&amp;lt;Year={2008}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Sum2009@ sum({&amp;lt;Year={2009}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Sum2010@ sum({&amp;lt;Year={2010}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;SumHELP@ sum({&amp;lt;Year={2008},Region = {'England','N Ireland'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;] (delimiter is '@');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 17:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419177#M155944</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-10T17:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419178#M155945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert right again.&amp;nbsp; Thank you for the explanation of inline delimiters!&amp;nbsp; This works great but of course I have one more challenge.&amp;nbsp; See attachment.&amp;nbsp; In one of my set analysis expressions I use a dollar sign expansion.&amp;nbsp; Qlikview is attempting to expand when it builds the table vs just adding the literal text.&amp;nbsp; I looked at your previous responses to this delima but still can't nail it.&amp;nbsp; As an idea I added another table which sources the inline table but uses the function REPLACE to replace the string ... in both scenario's I get a "internal error" where Qlikview is expanding my text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&amp;nbsp; Thanks Gysbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 19:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419178#M155945</guid>
      <dc:creator />
      <dc:date>2012-12-10T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419179#M155946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ~ (or another character of your choice) instead of $ in the expression you want to load, then use Replace(Expression,'~','$') to fix the expressions so the $ is put in the right places in the expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 16:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419179#M155946</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-11T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419180#M155947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert - Thanks again.&amp;nbsp; So I was doing the right thing I just tried to get too fancy and use the REPLACE function for more than just the dollar sign.&amp;nbsp; It works!&amp;nbsp; Thanks again ... hopefully some day I can help you when you are stuck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 16:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419180#M155947</guid>
      <dc:creator />
      <dc:date>2012-12-11T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute variable expansion on inline table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419181#M155948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, I'm wondering why this doesn't work, if no Label is selected (or more than one selected). Do you have any Idea how I could work around it? I just need a table with 2 dimensions Label and Product and the same Expression as already exists. Thanks, Hamid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 10:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-variable-expansion-on-inline-table/m-p/419181#M155948</guid>
      <dc:creator />
      <dc:date>2017-03-03T10:21:27Z</dc:date>
    </item>
  </channel>
</rss>

