<?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: Custom or User Defined Function Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304014#M406070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Probably this is a late reply, nevertheless, the problem might be related to vCondition having commas (,) in the expression. So when you pass it as a parameter, Qlik expands it and thinks that you have passed many parameters, separated by comma (,), therefore it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution would be to replace all comas in vCondition with semicolons(;). Then in format expression&lt;/P&gt;&lt;P&gt;replace $1 with $(=REPLACE('$1', ';', ',')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you are using other variables like $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTotalLogins&lt;/SPAN&gt;)m if any of these contains comas, the same story applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Sep 2017 07:03:58 GMT</pubDate>
    <dc:creator>d_pranskus</dc:creator>
    <dc:date>2017-09-29T07:03:58Z</dc:date>
    <item>
      <title>Custom or User Defined Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304012#M406068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know is it Possible to Pass If Condition as a Parameter to Custom Function&lt;/P&gt;&lt;P&gt;Here Is the Scenario&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;1. I Have Been Created One Variable in Script Level i.e&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;SET FormatNumber=Dual(&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; if($1&amp;gt;=10000000,num($1/10000000,'₹ ##.##Cr'),&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;gt;=100000,num($1/100000,'₹ ##.##L'),&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;gt;=1000,num($1/1000,'₹ ##.##K'),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$1))) ,$1);&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;I Have Been Created One Variable in Frontend i.e&amp;nbsp; vCondition this variable contains expression like below&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;if(Measures='Logins',$(vTotalLogins),&lt;BR /&gt;if(Measures='Clients Traded (Unique)',$(vUniqueClientsTraded),&lt;BR /&gt;if(Measures='Volume (Cr)',$(vTotalVolume),&lt;BR /&gt;if(Measures='Brokerage in Lacs (Gross)',$(vBrokerage),&lt;BR /&gt;if(Measures='No. of Trading Days',$(vNoftradingdays),&lt;BR /&gt;if(Measures='Avg. brokerage per client',$(vAvgClientBrokerage),&lt;BR /&gt;if(Measures='Avg. daily login',$(vAvgDailyLogins),&lt;BR /&gt;if(Measures='Avg. daily brokerage',$(vAvgDailyBrokerage),&lt;BR /&gt;if(Measures='Avg. daily volume',$(vAvgDailyVolume)&lt;BR /&gt;)))))))))&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;here I am passing vCondition as a parameter to FormatNumber like below&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;$(FormatNumber($(vCondition)))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But I unable to get the expected result .&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;2.&lt;SPAN style="font-size: 13.3333px; color: #575757; font-family: arial, helvetica, sans-serif;"&gt; i want to know one more thing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i.e is it possible to pass field as a parameter&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;Hello Qlik Experts,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please provide me the correct solution to overcome the above problem.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4826"&gt;d.pranskus&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2454"&gt;sunny&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 07:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304012#M406068</guid>
      <dc:creator>kakaderanjit53</dc:creator>
      <dc:date>2017-04-12T07:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom or User Defined Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304013#M406069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like: $(FormatNumber($(=vCondition))) or $(FormatNumber($(=$(vCondition)))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 10:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304013#M406069</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-04-12T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom or User Defined Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304014#M406070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Probably this is a late reply, nevertheless, the problem might be related to vCondition having commas (,) in the expression. So when you pass it as a parameter, Qlik expands it and thinks that you have passed many parameters, separated by comma (,), therefore it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution would be to replace all comas in vCondition with semicolons(;). Then in format expression&lt;/P&gt;&lt;P&gt;replace $1 with $(=REPLACE('$1', ';', ',')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you are using other variables like $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTotalLogins&lt;/SPAN&gt;)m if any of these contains comas, the same story applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 07:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-or-User-Defined-Function-Issue/m-p/1304014#M406070</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2017-09-29T07:03:58Z</dc:date>
    </item>
  </channel>
</rss>

