<?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 function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-function/m-p/1676286#M51411</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I want to use a description depending on a seleted value of a Variable input in a chart.&lt;BR /&gt;Is it possible to create custom functions in Qlik Sense.&lt;BR /&gt;I tried to put the formula in a variable like this&lt;BR /&gt;vKpiDesc =if($1='kpiSales','Sales €','Costs €')&lt;BR /&gt;and use vKpiDesc($(vKpi1)) in the description property of the chart.&lt;BR /&gt;But that doesn't seem to work.&lt;BR /&gt;Even if I put =if($(vKpi1)='kpiSales','Sales €','Costs €') directly into the description property of the chart it always shows the else-part of the if statement.&lt;BR /&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 14:04:19 GMT</pubDate>
    <dc:creator>Jaeger</dc:creator>
    <dc:date>2020-02-17T14:04:19Z</dc:date>
    <item>
      <title>Custom function</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-function/m-p/1676286#M51411</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I want to use a description depending on a seleted value of a Variable input in a chart.&lt;BR /&gt;Is it possible to create custom functions in Qlik Sense.&lt;BR /&gt;I tried to put the formula in a variable like this&lt;BR /&gt;vKpiDesc =if($1='kpiSales','Sales €','Costs €')&lt;BR /&gt;and use vKpiDesc($(vKpi1)) in the description property of the chart.&lt;BR /&gt;But that doesn't seem to work.&lt;BR /&gt;Even if I put =if($(vKpi1)='kpiSales','Sales €','Costs €') directly into the description property of the chart it always shows the else-part of the if statement.&lt;BR /&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-function/m-p/1676286#M51411</guid>
      <dc:creator>Jaeger</dc:creator>
      <dc:date>2020-02-17T14:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom function</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-function/m-p/1676795#M51448</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You dollar-expand the variable vKpi1 too often when you hand it over as $1 parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here how it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variable definition" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28601i76563697477D8AD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="vardef.png" alt="Variable definition" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Variable definition&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then hand over the variable vKpi1 without a dollar expansion:&amp;nbsp;=$(vKpiDesc(vKpi1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vardef2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28602i9CCF90B4D6E4AAF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="vardef2.png" alt="vardef2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-function/m-p/1676795#M51448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-18T19:02:19Z</dc:date>
    </item>
  </channel>
</rss>

