<?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: Can Match use output of function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305680#M824570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny -&lt;/P&gt;&lt;P&gt;That worked great.&amp;nbsp; I was not familiar with the Dual() function.&amp;nbsp; I am going to experiment a little further with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mary Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 16:39:41 GMT</pubDate>
    <dc:creator>mjtaft2017</dc:creator>
    <dc:date>2017-07-13T16:39:41Z</dc:date>
    <item>
      <title>Can Match use output of function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305678#M824568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community - &lt;/P&gt;&lt;P&gt;New to Qlikview -&amp;nbsp; I needed to create intervals (&amp;lt; 0 ,0-30, 31-60, 61-90, 91-120, &amp;gt;120) based upon a date user enters in input box.&amp;nbsp; So I cannot do this in load script.&amp;nbsp; I created a user function to slot the intervals based on the date entered.&amp;nbsp; I want to use this Match expression to sort the intervals in the order above.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Help says this is the format - so I am thinking I cannot use the output of my function as the first parm needed for Match.&amp;nbsp; Is there a way to accomplish this some how?&amp;nbsp; I included an example.&amp;nbsp; I want the chart Opportunity Aging to have the X axis sorted by intervals in the order listed above.&amp;nbsp; I thought had it working and then changed the input date and it didnt work again &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Match($(AgingInterval(CloseDate,vToday)),ValueList($(vInterval)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Match ( text, mask_expr1 { ,Expression} )&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Below is the function I created for the dimension - it takes 2 parameters&amp;nbsp; $1 is the Date from loaded table and $2 is the date the user enters in the input box which is used to define the start date for Aging :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SET AgingInterval =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if($1 &amp;lt; $2,'&amp;lt; 0',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(($1 &amp;gt;= $2 and $1 &amp;lt;= ($2 +30)), '0-30',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +31) and $1 &amp;lt;= ($2 +60)), '31-60',&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +61) and $1 &amp;lt;= ($2 +90)), '61-90',&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +91) and $1 &amp;lt;= ($2 +120)), '91-120',&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;=($2 +121)), '&amp;gt;120 days'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;))))));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the variable I created for the intervals I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vIntervals = '&amp;lt; 0','0-30','31-60','61-90','91-120','&amp;gt;120 days';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305678#M824568</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can Match use output of function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305679#M824569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual($(AgingInterval(CloseDate,vToday)), $(AgingIntervalNum(CloseDate,vToday)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;STRONG style="font-size: 13.3333px;"&gt;AgingIntervalNum &lt;/STRONG&gt;is a new variable like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if($1 &amp;lt; $2,0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(($1 &amp;gt;= $2 and $1 &amp;lt;= ($2 +30)),30,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(($1 &amp;gt;= ($2 +31) and $1 &amp;lt;= ($2 +60)), 60,&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +61) and $1 &amp;lt;= ($2 +90)), 90,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +91) and $1 &amp;lt;= ($2 +120)), 120,&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;=($2 +121)),150&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the dimension numerically now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170159_Capture.PNG" style="height: 276px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305679#M824569</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can Match use output of function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305680#M824570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny -&lt;/P&gt;&lt;P&gt;That worked great.&amp;nbsp; I was not familiar with the Dual() function.&amp;nbsp; I am going to experiment a little further with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mary Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305680#M824570</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-07-13T16:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can Match use output of function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305681#M824571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might work as well&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SET AgingInterval =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if($1 &amp;lt; $2, Dual('&amp;lt; 0', 0),&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(($1 &amp;gt;= $2 and $1 &amp;lt;= ($2 +30)), Dual('0-30', 30),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +31) and $1 &amp;lt;= ($2 +60)), Dual('31-60', 60), &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +61) and $1 &amp;lt;= ($2 +90)), Dual('61-90', 90),&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;= ($2 +91) and $1 &amp;lt;= ($2 +120)), Dual('91-120', 120), &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(($1 &amp;gt;=($2 +121)), Dual('&amp;gt;120 days', 150)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))))));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Basically, dual function assigns a numerical value to a text. First part is the text, second is the numerical value you want to assign it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305681#M824571</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T16:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can Match use output of function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305682#M824572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try that out.&amp;nbsp; I would still like to understand why I couldn't get the MATCH() function to work with my function output being the first parameter&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;Match($(AgingInterval(CloseDate,vToday)),ValueList($(vIntervals)))&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;Match ( text, mask_expr1 { ,Expression} )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I had this variable defined:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET vIntervals = '&amp;lt; 0','0-30','31-60','61-90','91-120','&amp;gt;120 days';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Match-use-output-of-function/m-p/1305682#M824572</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-07-13T17:02:26Z</dc:date>
    </item>
  </channel>
</rss>

