<?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: set for a very long definition with multiple lines.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29017#M791320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to read that, keep in touch &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, 01 Feb 2018 09:51:22 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2018-02-01T09:51:22Z</dc:date>
    <item>
      <title>set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29008#M791311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text box with a very long formula that I would like to reuse in multiple other text box.&lt;/P&gt;&lt;P&gt;So I would like to define a set like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set f_K_rest_to_pay='&lt;/P&gt;&lt;P&gt;if($(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull($(vNbMois_délai_Kx_rest_du)), '',&lt;/P&gt;&lt;P&gt;' Tendance sur '&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;((year($(vMaxMMM_YY_délai_Kx_rest_du))-year(min(MMM_YY)))*12+(month($(vMaxMMM_YY_délai_Kx_rest_du))-month(min(MMM_YY))) +1)&lt;/P&gt;&lt;P&gt;&amp;amp; &lt;/P&gt;&lt;P&gt;' mois : ')&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;round(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Only(&lt;/P&gt;&lt;P&gt;..................................&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;*100,0.01) &lt;/P&gt;&lt;P&gt;&amp;amp; &lt;/P&gt;&lt;P&gt;if($(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull($(vNbMois_délai_Kx_rest_du)), '',' %')&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; But it doesn't work. It seems that ' don't work, as I have also some inside my formula ?&lt;/P&gt;&lt;P&gt;Any advise ? Is it possible to have a set on a very long definition ?&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/set-for-a-very-long-definition-with-multiple-lines/m-p/29008#M791311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29009#M791312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That´s because you´re using a $ and those are evaluated at script time&lt;/P&gt;&lt;P&gt;Use this workaround&lt;/P&gt;&lt;P&gt;set f_K_rest_to_pay='&lt;/P&gt;&lt;P&gt;if(&amp;amp;(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull(&amp;amp;(vNbMois_délai_Kx_rest_du)), '',&lt;/P&gt;&lt;P&gt;' Tendance sur '&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;((year(&amp;amp;(vMaxMMM_YY_délai_Kx_rest_du))-year(min(MMM_YY)))*12+(month(&amp;amp;(vMaxMMM_YY_délai_Kx_rest_du))-month(min(MMM_YY))) +1)&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;' mois : ')&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;round(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Only(&lt;/P&gt;&lt;P&gt;..................................&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;*100,0.01)&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;if(&amp;amp;(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull(&amp;amp;(vNbMois_délai_Kx_rest_du)), '',' %')&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Let &lt;SPAN style="font-size: 13.3333px;"&gt;f_K_rest_to_pay = replace(&lt;SPAN style="font-size: 13.3333px;"&gt;f_K_rest_to_pay,'&amp;amp;','$');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29009#M791312</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-01-31T12:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29010#M791313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for this information that I didn't know. I corrected, but it still doesn't work. &lt;/P&gt;&lt;P&gt;I have the error message =&amp;gt; Error: Garbage after expression: "tendance".&lt;/P&gt;&lt;P&gt;I don't understant how can qlik manage ' inside ' ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29010#M791313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T12:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29011#M791314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use same approach, choose another unused char (@ for example) and then use a later replace to fix the problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29011#M791314</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-01-31T12:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29012#M791315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even with a small formula like that, I get the message =&amp;gt; Error: Garbage after expression: "tendance".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set f_K_rest_to_pay='if(&amp;amp;(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull(&amp;amp;(vNbMois_délai_Kx_rest_du)), '',' Tendance sur ' &lt;/P&gt;&lt;P&gt;)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let f_K_rest_to_pay = replace(f_K_rest_to_pay,'&amp;amp;','$');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29012#M791315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29013#M791316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is the variable ref in the replace, It should be quoted with DSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;L&lt;SPAN style="font-family: 'courier new', courier;"&gt;et f_K_rest_to_pay = replace(&lt;STRONG&gt;'$(&lt;/STRONG&gt;f_K_rest_to_pay&lt;STRONG&gt;)'&lt;/STRONG&gt;,'&amp;amp;','$');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29013#M791316</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-01-31T13:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29014#M791317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes... thanks Rob.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;But still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reload, I get this error &lt;/P&gt;&lt;P&gt;=&amp;gt; Script line error :&lt;/P&gt;&lt;P&gt;Let f_K_restant_a_regler_tendance = replace('&lt;/P&gt;&lt;P&gt;if(&amp;amp;(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull(&amp;amp;(vNbMois_délai_Kx_rest_du)), '',' Tendance sur ' &lt;/P&gt;&lt;P&gt;)','&amp;amp;','$')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put directly the above Let, Tendance is red underligned, so it still seems to me, there should be a way to put ' inside ' ?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29014#M791317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29015#M791318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using square brackets&lt;/P&gt;&lt;P&gt;Set &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;f_K_restant_a_regler_tendance = [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;your expression here without $ using &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;f_K_rest_to_pay = replace(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;f_K_rest_to_pay,'&amp;amp;','$');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29015#M791318</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-01-31T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29016#M791319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finaly works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks Rob and Clever for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set &lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;f_K_rest_to_pay&lt;/SPAN&gt;=&lt;STRONG&gt;[&lt;/STRONG&gt;if(&amp;amp;(vNbMois_délai_Kx_rest_du) &amp;lt;=1 or IsNull(&amp;amp;(vNbMois_délai_Kx_rest_du)),'','Tendance sur ')&lt;STRONG&gt;]&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let &lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;f_K_rest_to_pay&lt;/SPAN&gt;= replace(&lt;STRONG&gt;'&lt;/STRONG&gt;$(&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;f_K_rest_to_pay&lt;/SPAN&gt;)&lt;STRONG&gt;'&lt;/STRONG&gt;,'&amp;amp;','$');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29016#M791319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T14:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: set for a very long definition with multiple lines..</title>
      <link>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29017#M791320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to read that, keep in touch &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, 01 Feb 2018 09:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-for-a-very-long-definition-with-multiple-lines/m-p/29017#M791320</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-02-01T09:51:22Z</dc:date>
    </item>
  </channel>
</rss>

