<?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: if condition replacement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970326#M80059</link>
    <description>&lt;P&gt;The inline is just for demonstration purposes - nobody says you should use it. Nearly everything is better stored and loaded from a data-base or an Excel.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 14:37:59 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-08-18T14:37:59Z</dc:date>
    <item>
      <title>if condition replacement</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1969496#M79993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i am writing if condition for each Evaluation. like that i have multiple Evaluation sheets available so i need to do automation. like if i select Evaluation any value then directly display without writing if condition any other alternate.&lt;/P&gt;
&lt;P&gt;=If(Evaluation='A','23007_INTd_Gas',&lt;BR /&gt;If(Evaluation='B','23208_INTd_Gas 13 kph',&lt;BR /&gt;If(Evaluation='C','23217_INTd_Gas 13 kph',&lt;BR /&gt;If(Evaluation='D','24030_INTd_3Dr_Base_NSS_Base',&lt;BR /&gt;If(Evaluation='E','23620_INTd_RC_4x4_Gas',&lt;BR /&gt;If(Evaluation='F','24238_INTd_Gas_FX4 13 kph',&lt;BR /&gt;If(Evaluation='G','23757_INTd_On-Road 13 kph',&lt;BR /&gt;if(Evaluation='H Trails','23781_INTd_Trail 13 kph',&lt;BR /&gt;if(Evaluation='I','23884_INTd_N 12 kph','23004_INTd_Gas')))))))))&lt;/P&gt;
&lt;P&gt;variable (v23004) i have created.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then i am using in chart like&lt;/P&gt;
&lt;P&gt;If(Severity_Level='Severity1',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max4),&lt;BR /&gt;If(Severity_Level='Severity2',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max14),&lt;BR /&gt;If(Severity_Level='Severity3',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max14),&lt;BR /&gt;If(Severity_Level='Severity4',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max18),&lt;BR /&gt;If(Severity_Level='Severity5',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max18),&lt;BR /&gt;If(Severity_Level='Severity6',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max20),&lt;BR /&gt;If(Severity_Level='Severity7',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max20),&lt;BR /&gt;If(Severity_Level='Severity8',Max({&amp;lt;Description={'$(v23006)'}&amp;gt;}Max28))))))))),'-')&lt;/P&gt;
&lt;P&gt;so without writing above if condition any other alternate method please suggest. thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 06:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1969496#M79993</guid>
      <dc:creator>nvijay5757</dc:creator>
      <dc:date>2022-08-17T06:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: if condition replacement</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1969604#M80000</link>
      <description>&lt;P&gt;You may replace the nested if-loops with a pick(match()) logic. But this is just a simplifying of the syntax and didn't change the approach itself.&lt;/P&gt;
&lt;P&gt;I suggest that you do the essential work within the data-model and using an appropriate mapping for your first if-loop to group/categorize the data and for the second if-loop you should consider to transform the crosstable-structure into a stream-data-structure&amp;nbsp; per: &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083" target="_blank"&gt;The Crosstable Load - Qlik Community - 1468083&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 10:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1969604#M80000</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-08-17T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: if condition replacement</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1969916#M80030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;i have tried but not working.&lt;/P&gt;
&lt;P&gt;i am attaching sample data and QVF can you please check and suggest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 18:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1969916#M80030</guid>
      <dc:creator>nvijay5757</dc:creator>
      <dc:date>2022-08-17T18:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: if condition replacement</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970108#M80038</link>
      <description>&lt;P&gt;Meant was something like:&lt;/P&gt;
&lt;P&gt;m: mapping load * inline [&lt;BR /&gt;&lt;SPAN&gt;Evaluation, Value&lt;BR /&gt;A, 23007_INTd_Gas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B, 23208_INTd_Gas 13 kph&lt;BR /&gt;&lt;/SPAN&gt;...&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;t1: crosstable([Min/Max], Value, &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; load RecordID, F1, F2, F3, F4, F5, F6, Programm,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Min/max-Fields ....&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; from Excel;&lt;/P&gt;
&lt;P&gt;t2: load *, keepchar([Min/Max], 'Minax') as Type,&amp;nbsp;purgechar([Min/Max], 'Minax') as Number,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;applymap('m', EvolutionField, 'no match') as XX&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;resident t1;&lt;/P&gt;
&lt;P&gt;Afterwards a simple max(Value) is enough to return the selection-related results. Should the selections be partly ignored/overwritten Type and Number could be used within a set analysis to modify the results.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 07:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970108#M80038</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-08-18T07:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: if condition replacement</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970317#M80058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;in inline every time Value will change, i.e unique. my intention to avoid that every time we enter.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;m: mapping load * inline [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evaluation, Value&lt;BR /&gt;A, 23007_INTd_Gas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B, 23208_INTd_Gas 13 kph&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 14:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970317#M80058</guid>
      <dc:creator>nvijay5757</dc:creator>
      <dc:date>2022-08-18T14:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: if condition replacement</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970326#M80059</link>
      <description>&lt;P&gt;The inline is just for demonstration purposes - nobody says you should use it. Nearly everything is better stored and loaded from a data-base or an Excel.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 14:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-replacement/m-p/1970326#M80059</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-08-18T14:37:59Z</dc:date>
    </item>
  </channel>
</rss>

