<?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: Importing and expanding $variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264458#M517848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm I wonder if I could dynamically build the pick match instead, at least that would offer some sort of automation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 13:56:03 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2017-01-03T13:56:03Z</dc:date>
    <item>
      <title>Importing and expanding $variables</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264455#M517845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a mind blank....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to store some calculations in excel/DB and then import them, basically to create a custom report format in a pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the expressions are already in variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The upload spreadsheet for example is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 707px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" width="108"&gt;_ReportLevel&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="204"&gt;_ReportHeading&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="331"&gt;_ReportCalculation&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;_ReportFormat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;s&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Weekly Profitability&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Issued&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;"&gt;$(v_exp_jobinvoicedcount)&lt;/TD&gt;&lt;TD class="xl63"&gt;#,##0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Value&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;$(v_exp_jobinvoicedvalue)&lt;/TD&gt;&lt;TD class="xl63"&gt;£#,##0;-£#,##0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Avg Value&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;$(v_exp_jobinvoicedvalue) / $(v_exp_jobinvoicedcount)&lt;/TD&gt;&lt;TD class="xl63"&gt;£#,##0;-£#,##0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;a&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Week Average&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt;£#,##0;-£#,##0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What syntax do I then need to use to calculate the relevant variable if _ReportHeading is the dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 12:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264455#M517845</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-03T12:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing and expanding $variables</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264456#M517846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not quite clear for me what do you want exactly to do - but I think the following will be helpful for you: &lt;A href="https://community.qlik.com/message/1186817"&gt;Re: Evaluate expression based on field value&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 13:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264456#M517846</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-03T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Importing and expanding $variables</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264457#M517847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that a pick match might be the only way in this case unfortunately, however I have just whipped up a basic example of what I hope to achieve.&lt;/P&gt;&lt;P&gt;In the attached example the pick match does work but it would be nice to make it more dynamic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick(match(_Header,'average','expression1','expression2'),$(v_expression1) / $(v_expression2),$(v_expression1),$(v_expression2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 13:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264457#M517847</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-03T13:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing and expanding $variables</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264458#M517848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm I wonder if I could dynamically build the pick match instead, at least that would offer some sort of automation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 13:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264458#M517848</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-03T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Importing and expanding $variables</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264459#M517849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Close, but now I can't figure out the syntax to use the pick/match variable!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 14:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264459#M517849</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-03T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Importing and expanding $variables</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264460#M517850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;got it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=$(v_pick_match))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 14:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-and-expanding-variables/m-p/1264460#M517850</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-03T14:14:51Z</dc:date>
    </item>
  </channel>
</rss>

