<?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: User defined function or expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1592256#M738912</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;You may use this sketch for picking some ideas how dealer's note can be implemented.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dealers_kpi_pic1.png" style="width: 676px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13822iF451F1A493CDD643/image-size/large?v=v2&amp;amp;px=999" role="button" title="dealers_kpi_pic1.png" alt="dealers_kpi_pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've left Web View mode switched on in the attached file. You can switch it off in View panel.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jun 2019 08:46:17 GMT</pubDate>
    <dc:creator>Sergey_Shuklin</dc:creator>
    <dc:date>2019-06-15T08:46:17Z</dc:date>
    <item>
      <title>User defined function or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1591909#M738911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm quite new to QlikView and I'm facing currently following problem - there is a list of car dealers, for each of them I calculate let's say 3&amp;nbsp; KPIs, like "% of total sales", "% of bad loans", "% of fraud cases".&lt;/P&gt;&lt;P&gt;Next step&amp;nbsp; is to calculate deviation of each KPI from the average value for all the dealers. If the deviation is greater than 20%, KPI gets note=4, if &amp;gt; 15% then gets note=3, if &amp;gt; 10% than note=2 else note=1.&lt;BR /&gt;So before final calculation I have following variables:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;total_sales_note = 3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;bad_loans_note = 2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fraud_cases_note = 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Based of these 3 variables I would need to calculate so called "Dealer grading note" which has also values 1 to 4. It is calculated like following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dealer_grading = (total_sales_note *&amp;nbsp;total_sales_weight) + (bad_loans_note * bad_loans_weight) + (fraud_cases_note *&amp;nbsp;fraud_cases_weight)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;total_sales_weight = 0.5,&amp;nbsp;bad_loans_weight = 0.3,&amp;nbsp;fraud_cases_weight = 0.2 &lt;/EM&gt;(fixed values)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if dealer_grading &amp;gt; 3.2 then dealer_grading_note = 4;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else if dealer_grading &amp;gt; 2.6 then dealer_grading_note = 3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else if dealer_grading &amp;gt; 1.45 then dealer_grading_note = 2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else dealer_grading_note = 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;How you would implement it in QlikView? I mean the last step, calculation of&amp;nbsp;&lt;EM&gt;dealer_grading_note /&amp;nbsp;dealer_grading.&lt;/EM&gt; At the end, it should be shown in the textbox&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;I was trying to write own function, but I have still too less experience .&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1591909#M738911</guid>
      <dc:creator>mmstefan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: User defined function or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1592256#M738912</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;You may use this sketch for picking some ideas how dealer's note can be implemented.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dealers_kpi_pic1.png" style="width: 676px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13822iF451F1A493CDD643/image-size/large?v=v2&amp;amp;px=999" role="button" title="dealers_kpi_pic1.png" alt="dealers_kpi_pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've left Web View mode switched on in the attached file. You can switch it off in View panel.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 08:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1592256#M738912</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2019-06-15T08:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: User defined function or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1592359#M738914</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 04:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-or-expression/m-p/1592359#M738914</guid>
      <dc:creator>mmstefan</dc:creator>
      <dc:date>2019-06-17T04:35:50Z</dc:date>
    </item>
  </channel>
</rss>

