<?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: how to Load * Inline with field reference within range of values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961364#M79239</link>
    <description>&lt;P&gt;this table will be used for conditional filteres within the functions of the charts in our apps. For example instead of creating a function : ''Count( distinct&amp;nbsp; If(Panel_id &amp;gt;=0 and Panel_id &amp;lt;=10, ACC_ID)" we would use : "Count( Distinct if(PanelType = 'Oral Fluid', ACC_ID)"&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 18:59:20 GMT</pubDate>
    <dc:creator>Marcushenriquesk</dc:creator>
    <dc:date>2022-07-27T18:59:20Z</dc:date>
    <item>
      <title>how to Load * Inline with field reference within range of values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961301#M79232</link>
      <description>&lt;P&gt;So I have a table called Panels. It contains a list of panel_names based on Panel_id. For example, Panel_ID = 1 has Panel_name = 'First_Panel_Name.' I want to create a scalable structure so that instead of using individual Panel_ids for the conditions within our functions we can use a load * Inline Table. It would look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PanelType : &lt;BR /&gt;load * Inline [&lt;BR /&gt;PANEL_ID, PanelType&lt;/P&gt;
&lt;P&gt;if(PANEL_ID &amp;gt;70001 and PANEL_ID &amp;lt; 70075, Oral Fluid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if(PANEL_ID &amp;gt;65001 and PANEL_ID &amp;lt; 65018, Oral Fluid&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, It doesnt recognize the if condition and just makes the selection '&amp;nbsp;if(PANEL_ID &amp;gt;65001 and PANEL_ID &amp;lt; 65018' = 'Oral Fluid'&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 16:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961301#M79232</guid>
      <dc:creator>Marcushenriquesk</dc:creator>
      <dc:date>2022-07-27T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to Load * Inline with field reference within range of values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961360#M79238</link>
      <description>&lt;P&gt;can you post how &lt;FONT color="#0000FF"&gt;"&lt;SPAN&gt;It doesnt recognize the if condition and just makes the selection '&amp;nbsp;if(PANEL_ID &amp;gt;65001 and PANEL_ID &amp;lt; 65018' = 'Oral Fluid'"?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;How do you use this table?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961360#M79238</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-07-27T18:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to Load * Inline with field reference within range of values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961364#M79239</link>
      <description>&lt;P&gt;this table will be used for conditional filteres within the functions of the charts in our apps. For example instead of creating a function : ''Count( distinct&amp;nbsp; If(Panel_id &amp;gt;=0 and Panel_id &amp;lt;=10, ACC_ID)" we would use : "Count( Distinct if(PanelType = 'Oral Fluid', ACC_ID)"&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961364#M79239</guid>
      <dc:creator>Marcushenriquesk</dc:creator>
      <dc:date>2022-07-27T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to Load * Inline with field reference within range of values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961374#M79242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146912"&gt;@Marcushenriquesk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;IMHO you don't need the PanelType table.&lt;/P&gt;
&lt;P&gt;In the LOAD statement of your main table, just define this additional field:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;if(PANEL_ID &amp;gt;70001 and PANEL_ID &amp;lt; 70075, Oral Fluid,&amp;nbsp;&amp;nbsp;if(PANEL_ID &amp;gt;65001 and PANEL_ID &amp;lt; 65018, Oral Fluid, 'Other') AS PanelType&lt;/P&gt;
&lt;P&gt;FROM mySource;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 19:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961374#M79242</guid>
      <dc:creator>tealowk</dc:creator>
      <dc:date>2022-07-27T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to Load * Inline with field reference within range of values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961380#M79243</link>
      <description>&lt;P&gt;These expressions should be replaced with the corresponding set analysis expressions.&lt;/P&gt;
&lt;P&gt;Old:&amp;nbsp;&lt;SPAN&gt;Count( distinct&amp;nbsp; If(Panel_id &amp;gt;=0 and Panel_id &amp;lt;=10, ACC_ID)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;New:&amp;nbsp;&lt;SPAN&gt;Count( {&amp;lt;Panel_id={"&amp;gt;=0 &amp;lt;=10"}&amp;gt;} distinct&amp;nbsp; ACC_ID)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Old:&amp;nbsp;Count( Distinct if(PanelType = 'Oral Fluid', ACC_ID)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;New:&amp;nbsp;Count( {&amp;lt;PanelType={'Oral Fluid'}&amp;gt;} Distinct&amp;nbsp; ACC_ID)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 19:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Load-Inline-with-field-reference-within-range-of-values/m-p/1961380#M79243</guid>
      <dc:creator>tealowk</dc:creator>
      <dc:date>2022-07-27T19:31:49Z</dc:date>
    </item>
  </channel>
</rss>

