<?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 Custom Fuction Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Fuction-Issue/m-p/1301430#M27631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here My scenario is Create Custom Fuction to show values in Crores,Lacs,Thousands etc for that purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Have Been Created One Variable in Script Level i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET FormatNumber=Dual(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($1&amp;gt;=10000000,num($1/10000000,'₹ ##.##Cr'),&lt;/P&gt;&lt;P&gt; if($1&amp;gt;=100000,num($1/100000,'₹ ##.##L'),&lt;/P&gt;&lt;P&gt; if($1&amp;gt;=1000,num($1/1000,'₹ ##.##K'),&lt;/P&gt;&lt;P&gt; $1))) ,$1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&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&gt;here I am passing vCondition as a parameter to FormatNumber like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(FormatNumber($(vCondition)))&lt;/P&gt;&lt;P&gt;But I unable to get the expected result .&lt;/P&gt;&lt;P&gt;Hello Qlik Experts,&lt;/P&gt;&lt;P&gt;Please provide me the correct solution to overcome the above problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Apr 2017 14:48:10 GMT</pubDate>
    <dc:creator>kakaderanjit53</dc:creator>
    <dc:date>2017-04-11T14:48:10Z</dc:date>
    <item>
      <title>Custom Fuction Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Fuction-Issue/m-p/1301430#M27631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here My scenario is Create Custom Fuction to show values in Crores,Lacs,Thousands etc for that purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Have Been Created One Variable in Script Level i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET FormatNumber=Dual(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($1&amp;gt;=10000000,num($1/10000000,'₹ ##.##Cr'),&lt;/P&gt;&lt;P&gt; if($1&amp;gt;=100000,num($1/100000,'₹ ##.##L'),&lt;/P&gt;&lt;P&gt; if($1&amp;gt;=1000,num($1/1000,'₹ ##.##K'),&lt;/P&gt;&lt;P&gt; $1))) ,$1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&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&gt;here I am passing vCondition as a parameter to FormatNumber like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(FormatNumber($(vCondition)))&lt;/P&gt;&lt;P&gt;But I unable to get the expected result .&lt;/P&gt;&lt;P&gt;Hello Qlik Experts,&lt;/P&gt;&lt;P&gt;Please provide me the correct solution to overcome the above problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Fuction-Issue/m-p/1301430#M27631</guid>
      <dc:creator>kakaderanjit53</dc:creator>
      <dc:date>2017-04-11T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fuction Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Fuction-Issue/m-p/1301431#M27632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest two improvements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Start the formula in vCondition with the equal sign, in order to pick the relevant formula before the expression gets to the Chart Measure - that means that Measures cannot be your chart Dimension, but it will largely improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The parameter to the $-sign expansion needs to be enclosed in single quotes, to appear as a string:&lt;/P&gt;&lt;P&gt;$(FormatNumber('$(vCondition)'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that these two changes should fix the problem, however everything needs to be tested &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We teach these advanced techniques at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - check our upcoming schedule and see if our agenda is good for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik Skills with my book &lt;A href="https://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=098202df27917ab9836332cf063c51f5"&gt;QlikView Your Business: An Expert Guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Fuction-Issue/m-p/1301431#M27632</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-04-11T14:55:39Z</dc:date>
    </item>
  </channel>
</rss>

