<?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: Type flagging based on cell values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Type-flagging-based-on-cell-values/m-p/2109821#M90646</link>
    <description>&lt;P&gt;I've found a working solution with help from a colleague &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Left Join&lt;BR /&gt;LOAD&lt;BR /&gt;left(LOADID,index(LOADID,'-',-1)-1) as LOADID,&lt;BR /&gt;1 as Main2Sub&lt;BR /&gt;Resident "myTable"&lt;BR /&gt;Where LoadType='Sub Load';&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 08:16:30 GMT</pubDate>
    <dc:creator>Gunnermate</dc:creator>
    <dc:date>2023-08-25T08:16:30Z</dc:date>
    <item>
      <title>Type flagging based on cell values</title>
      <link>https://community.qlik.com/t5/App-Development/Type-flagging-based-on-cell-values/m-p/2109760#M90639</link>
      <description>&lt;P&gt;I have two different kind of formats on an ID used in a transportation app, where among others the LoadWeigt is calculated.... &lt;STRONG&gt;LOADID&lt;/STRONG&gt; (T-123456 for Main and T-123456-1 for Sub Load) is located the same table field. So a row can either be a 'Main Load' or a 'Sub Load'. When there is a 'Sub Load' I shall always use this row for calculating the LoadWeigt and sometimes there is just a MainID. The Load script function below helps me flag them&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If(WildMatch(LOADID, '*-*-*'), 'Sub Load', 'Main Load') AS LoadType&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Now to my question:&lt;/P&gt;
&lt;P&gt;I need to distinguish between the 'Main Load's which has 'Sub Load's and the stand alone 'Main Load's based on the LoadID values formatted as described. How can I do that?&lt;/P&gt;
&lt;P&gt;The table below shows wished outcome where LoadType is the flag pin pointing what kind of type. It's the "Main2Sub" I can't figure out&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;LoadID&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;LoadType&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;LoadWeight&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;T-123456&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Main2Sub&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;T-123456-1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Sub&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;T-321654&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Main&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 25 Aug 2023 05:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Type-flagging-based-on-cell-values/m-p/2109760#M90639</guid>
      <dc:creator>Gunnermate</dc:creator>
      <dc:date>2023-08-25T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Type flagging based on cell values</title>
      <link>https://community.qlik.com/t5/App-Development/Type-flagging-based-on-cell-values/m-p/2109821#M90646</link>
      <description>&lt;P&gt;I've found a working solution with help from a colleague &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Left Join&lt;BR /&gt;LOAD&lt;BR /&gt;left(LOADID,index(LOADID,'-',-1)-1) as LOADID,&lt;BR /&gt;1 as Main2Sub&lt;BR /&gt;Resident "myTable"&lt;BR /&gt;Where LoadType='Sub Load';&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Type-flagging-based-on-cell-values/m-p/2109821#M90646</guid>
      <dc:creator>Gunnermate</dc:creator>
      <dc:date>2023-08-25T08:16:30Z</dc:date>
    </item>
  </channel>
</rss>

