<?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 use case can i replace hard coding value with search mesure or variable in complexe formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/use-case-can-i-replace-hard-coding-value-with-search-mesure-or/m-p/1833228#M68788</link>
    <description>&lt;P&gt;Hi Expert&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a use case in wich a need to elaborate an incentive app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;let's say i have 10 mesure. For each of those mesure i nedd to compare the result against the goal and a find the nearest step so that i can applicate a % of incentive and in final multiply this % of incentive by the final part of incentive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below an example with 2 mesures :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;mesures&lt;/TD&gt;&lt;TD&gt;Objectif&lt;/TD&gt;&lt;TD&gt;step&lt;/TD&gt;&lt;TD&gt;% of incentive&lt;/TD&gt;&lt;TD&gt;Part of final incentive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;calls handled/calls received&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;81%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;calls handled/calls received&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;85,5%&lt;/TD&gt;&lt;TD&gt;70%&lt;/TD&gt;&lt;TD&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;calls handled/calls received&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;TD&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;réitération rate&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;réitération rate&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;81%&lt;/TD&gt;&lt;TD&gt;70%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;réitération rate&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;82%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example with the mesure calls handled / calls received : if the result is 84% then i need to pick % of incentive (50%) and multiply by the final part of incentive (here 20%) So i get 50% of 20% = 10 %.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in my mesure i would like to be able to pick corresponding value ( step , % of incentive and final part ) automatically rather than write for each mesure one manually comlexe mesure :&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;actually :&amp;nbsp;&lt;BR /&gt;if(&lt;BR /&gt;num(sum(TRAITES)/sum(PRESENTES),'00,000')&amp;gt;'0,90','$(=sum(1*0.2))',&lt;BR /&gt;if(&lt;BR /&gt;num(sum(TRAITES)/sum(PRESENTES),'00,000')&amp;gt;'0,855','$(=sum(0.7*0.2))',&lt;BR /&gt;if(&lt;BR /&gt;num(sum(TRAITES)/sum(PRESENTES),'00,000')&amp;gt;'0,81','$(=sum(0.5*0.2))',null())&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i replace &amp;gt;0,90 , &amp;gt;0.855, &amp;gt;0.81 by a mesure or variable and the corresponding multiplication&amp;nbsp;$(=sum(1*0.2)),&amp;nbsp;$(=sum(0.7*0.2)) etc&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure to be clear and sorry in advance for my approximative english&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 12:04:53 GMT</pubDate>
    <dc:creator>brunobertels</dc:creator>
    <dc:date>2021-09-02T12:04:53Z</dc:date>
    <item>
      <title>use case can i replace hard coding value with search mesure or variable in complexe formula</title>
      <link>https://community.qlik.com/t5/App-Development/use-case-can-i-replace-hard-coding-value-with-search-mesure-or/m-p/1833228#M68788</link>
      <description>&lt;P&gt;Hi Expert&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a use case in wich a need to elaborate an incentive app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;let's say i have 10 mesure. For each of those mesure i nedd to compare the result against the goal and a find the nearest step so that i can applicate a % of incentive and in final multiply this % of incentive by the final part of incentive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below an example with 2 mesures :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;mesures&lt;/TD&gt;&lt;TD&gt;Objectif&lt;/TD&gt;&lt;TD&gt;step&lt;/TD&gt;&lt;TD&gt;% of incentive&lt;/TD&gt;&lt;TD&gt;Part of final incentive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;calls handled/calls received&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;81%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;calls handled/calls received&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;85,5%&lt;/TD&gt;&lt;TD&gt;70%&lt;/TD&gt;&lt;TD&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;calls handled/calls received&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;90%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;TD&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;réitération rate&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;réitération rate&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;81%&lt;/TD&gt;&lt;TD&gt;70%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;réitération rate&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;82%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example with the mesure calls handled / calls received : if the result is 84% then i need to pick % of incentive (50%) and multiply by the final part of incentive (here 20%) So i get 50% of 20% = 10 %.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in my mesure i would like to be able to pick corresponding value ( step , % of incentive and final part ) automatically rather than write for each mesure one manually comlexe mesure :&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;actually :&amp;nbsp;&lt;BR /&gt;if(&lt;BR /&gt;num(sum(TRAITES)/sum(PRESENTES),'00,000')&amp;gt;'0,90','$(=sum(1*0.2))',&lt;BR /&gt;if(&lt;BR /&gt;num(sum(TRAITES)/sum(PRESENTES),'00,000')&amp;gt;'0,855','$(=sum(0.7*0.2))',&lt;BR /&gt;if(&lt;BR /&gt;num(sum(TRAITES)/sum(PRESENTES),'00,000')&amp;gt;'0,81','$(=sum(0.5*0.2))',null())&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i replace &amp;gt;0,90 , &amp;gt;0.855, &amp;gt;0.81 by a mesure or variable and the corresponding multiplication&amp;nbsp;$(=sum(1*0.2)),&amp;nbsp;$(=sum(0.7*0.2)) etc&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure to be clear and sorry in advance for my approximative english&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 12:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/use-case-can-i-replace-hard-coding-value-with-search-mesure-or/m-p/1833228#M68788</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2021-09-02T12:04:53Z</dc:date>
    </item>
  </channel>
</rss>

