<?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 Developing Nested Parameterised Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Developing-Nested-Parameterised-Expressions/m-p/950967#M327091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;/SPAN&gt;I am trying to develop a set of nested paramerised expressions sharing multiple parameters ($1, $2, $3 and $4) across the set but I cannot get the nesting to work. When used in their full form (manually expaned) they all work OK. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;My objective is for the final set to provide flexibility across multiple processes and so ease future application development / maintenance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eReceived = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;Sum( { $ &amp;lt; $1, [Date] = {'&amp;lt;=$(vLatestDate)'}, [_Type] = {'StoresMetric'}, $2, $3 &amp;gt; } [# Received])&lt;/P&gt;&lt;P&gt;,'#,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;eFailureLinesEO&amp;nbsp; = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;$(vIncludeEOs), Sum( { $ &amp;lt; $1, [Date] = {'&amp;lt;=$(vLatestDate)'}, [_Type] = {'FailureItem'}, $2, [Excused Occurance] = {'-1'}, $4 &amp;gt; } [# Lines])&lt;/P&gt;&lt;P&gt;, 0)&lt;/P&gt;&lt;P&gt;,'#,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eProcessed = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum( { $ &amp;lt; $1, [Date] = {'&amp;lt;=$(vLatestDate)'}, [_Type] = {'StoresMetric'}, $2, $3 &amp;gt; } [# Processed])&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;$(FailureLinesEO)&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;,'#,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eProductivity = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;$(eProcessed)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt; /&lt;/P&gt;&lt;P&gt;$(eReceived)&lt;/P&gt;&lt;P&gt;,'##0.0%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intended usage for parameters is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$1 an optional shared parameter to (optionally) select sets which represents a particular Year e.g. [Year] = {$(vTY_Year)}&lt;/P&gt;&lt;P&gt;$2 a second shared parameter typically to be used with a Date related Flag e.g. [_TY_YTD] = {1}&lt;/P&gt;&lt;P&gt;$3 a dedicated parameter (used within one expression) to (optionally) select a set which represents a process area e.g.&amp;nbsp; [Process] = {'$(vProcess)'}&lt;/P&gt;&lt;P&gt;$4 an optional dedicated parameter (used within another expression) to (optionally) select a set which represents a process failure e.g. [Failure Point] = {'$(vFailurePoint01)'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this all achievable using Qlikview?&lt;/LI&gt;&lt;LI&gt;Am I able to default one or more $1, $4, etc parameters when they are not required and if so what represents best practice? &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(eFailureLinesEO( [_TY_YTD] = {1}, '', '', [Failure Point] = {'$(vFailurePoint01)'})) seems to work OK&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What issues will I face if deploying such expressions across charts and other objects using various dimensions?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help / advice offered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 10:18:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-06T10:18:57Z</dc:date>
    <item>
      <title>Developing Nested Parameterised Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Developing-Nested-Parameterised-Expressions/m-p/950967#M327091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;/SPAN&gt;I am trying to develop a set of nested paramerised expressions sharing multiple parameters ($1, $2, $3 and $4) across the set but I cannot get the nesting to work. When used in their full form (manually expaned) they all work OK. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;My objective is for the final set to provide flexibility across multiple processes and so ease future application development / maintenance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eReceived = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;Sum( { $ &amp;lt; $1, [Date] = {'&amp;lt;=$(vLatestDate)'}, [_Type] = {'StoresMetric'}, $2, $3 &amp;gt; } [# Received])&lt;/P&gt;&lt;P&gt;,'#,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;eFailureLinesEO&amp;nbsp; = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;$(vIncludeEOs), Sum( { $ &amp;lt; $1, [Date] = {'&amp;lt;=$(vLatestDate)'}, [_Type] = {'FailureItem'}, $2, [Excused Occurance] = {'-1'}, $4 &amp;gt; } [# Lines])&lt;/P&gt;&lt;P&gt;, 0)&lt;/P&gt;&lt;P&gt;,'#,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eProcessed = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum( { $ &amp;lt; $1, [Date] = {'&amp;lt;=$(vLatestDate)'}, [_Type] = {'StoresMetric'}, $2, $3 &amp;gt; } [# Processed])&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;$(FailureLinesEO)&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;,'#,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eProductivity = &lt;/P&gt;&lt;P&gt;(Num(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;$(eProcessed)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt; /&lt;/P&gt;&lt;P&gt;$(eReceived)&lt;/P&gt;&lt;P&gt;,'##0.0%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intended usage for parameters is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$1 an optional shared parameter to (optionally) select sets which represents a particular Year e.g. [Year] = {$(vTY_Year)}&lt;/P&gt;&lt;P&gt;$2 a second shared parameter typically to be used with a Date related Flag e.g. [_TY_YTD] = {1}&lt;/P&gt;&lt;P&gt;$3 a dedicated parameter (used within one expression) to (optionally) select a set which represents a process area e.g.&amp;nbsp; [Process] = {'$(vProcess)'}&lt;/P&gt;&lt;P&gt;$4 an optional dedicated parameter (used within another expression) to (optionally) select a set which represents a process failure e.g. [Failure Point] = {'$(vFailurePoint01)'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this all achievable using Qlikview?&lt;/LI&gt;&lt;LI&gt;Am I able to default one or more $1, $4, etc parameters when they are not required and if so what represents best practice? &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(eFailureLinesEO( [_TY_YTD] = {1}, '', '', [Failure Point] = {'$(vFailurePoint01)'})) seems to work OK&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What issues will I face if deploying such expressions across charts and other objects using various dimensions?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help / advice offered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 10:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Developing-Nested-Parameterised-Expressions/m-p/950967#M327091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T10:18:57Z</dc:date>
    </item>
  </channel>
</rss>

